[SRILM User List] Perl client-server with SWIG and SRILM

Andreas Stolcke stolcke at speech.sri.com
Wed May 12 10:54:00 PDT 2010


In message <AANLkTilotQsIzYph3pJEHP-zxPBMK7ibw_zrVP_5bvdA at mail.gmail.com>you wrote:
> Hi people.
> I am using SRILM to build a language model.
> But i want to use the client-server architecture that comes with SRILM.
> I want to use SWIG to make the interface to Perl as a module and then use
> it.

Good idea!

> What is the C++ or C module of the SRILM that i have to get into the
> interface?
> Can somebody help me?

The server side is implemented in 

LM::probServer(unsigned port, unsigned maxClients)

in lm/src/LM.cc.   The client side is in lm/src/LMClient.cc .

Let me know if you need more pointers.

Andreas



More information about the SRILM-User mailing list