Sorry again.<br><br>I want to use this function in Perl but i dont know how to call it because i think it needs a point <br><br>float getWordProb(Ngram* ngram, unsigned w, unsigned* context) {<br>    return (float)ngram->wordProb(w, context);<br>
}<br><br>The variable <u>context</u> it seems a point to a string.<br>How do i call it  in perl?<br>it seems to me that perl doesnt use much the pointers.<br>Thanks ,<br>Manel.<br><br><div class="gmail_quote">On Wed, May 12, 2010 at 6:53 PM, Andreas Stolcke <span dir="ltr"><<a href="mailto:stolcke@speech.sri.com">stolcke@speech.sri.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">In message <<a href="mailto:AANLkTilotQsIzYph3pJEHP-zxPBMK7ibw_zrVP_5bvdA@mail.gmail.com">AANLkTilotQsIzYph3pJEHP-zxPBMK7ibw_zrVP_5bvdA@mail.gmail.com</a>>you wrote:<br>

> Hi people.<br>
> I am using SRILM to build a language model.<br>
> But i want to use the client-server architecture that comes with SRILM.<br>
> I want to use SWIG to make the interface to Perl as a module and then use<br>
> it.<br>
<br>
</div>Good idea!<br>
<div class="im"><br>
> What is the C++ or C module of the SRILM that i have to get into the<br>
> interface?<br>
> Can somebody help me?<br>
<br>
</div>The server side is implemented in<br>
<br>
LM::probServer(unsigned port, unsigned maxClients)<br>
<br>
in lm/src/LM.cc.   The client side is in lm/src/LMClient.cc .<br>
<br>
Let me know if you need more pointers.<br>
<font color="#888888"><br>
Andreas<br>
<br>
</font></blockquote></div><br>