You can get a list of available feature functions that was compiled into a
particular moses executable by running the decoder without any arguments.

Just been added:

https://github.com/moses-smt/mosesdecoder/commit/d51702f38726e540723250d656cccec6234a2d3f

$./bin/moses
.....
Available feature functions:
KENLM
SRILM
IRSTLM
SkeletonStatelessFF
ConstrainedDecoding
UnknownWordPenalty
....



On 1 November 2013 00:09, Tom Hoar <[email protected]>wrote:

> Here's a shell script that finds all language models. The output is a
> simple list of all the language models that were compiled into the Moses
> binary. Example, on DoMY it reports:
>
> tahoar@moses0:~$ report-moses-lms.sh
> IRSTLM RANDLM KENLM
>
> It supports these command line options:
>
> tahoar@moses0:~$ report-moses-lms.sh -h
> usage: report-moses-lms.sh OPTIONS
>
> Reports all language models compiled into a moses binary.
>
> OPTIONS:
>    -p|-P path   Absolute path of Moses binary (/home/tahoar/bin/moses)
>    -l|-L        Output one language model per line
>    -c|-C        Include language model code in output
>    -q|-Q        Quiet mode (no output if binary not found)
>    -h|-H        Show this message
>
>
> It's based on some code shared from this support list a couple years ago.
> It's been tested through release 1.0. Please feel free to add it to the
> Moses contrib folder if it still works on the active trunk.
>
> Tom
>
>
>
> On 11/01/2013 12:02 AM, Read, James C wrote:
>
>> Thanks,
>>
>> my installation of both IRSTLM and SRILM completed without errors. I used
>> the --with-irstlm and --with-srilm flags to compile Moses with both
>> libraries. The compilation finished without errors. Is there a quick way to
>> verify that everything worked for both libraries?
>>
>> thanks,
>> James
>> ______________________________**__________
>> From: Nicola Bertoldi [[email protected]]
>> Sent: 31 October 2013 16:22
>> To: Read, James C
>> Cc: moses-support support; Nicola Bertoldi
>> Subject: Re: [Moses-support] language models
>>
>> Hi James,
>>
>> yes,   I already succeeded in installing randLM and SRILM on both MacOSx
>>  and Linux Redhat. it was very simple following their  documentations.
>>
>> and
>>
>> yes,  it is possible to compile Moses with any LM library you like
>> adding zero, one or more of the following parameters
>>
>> --with-irstlm=/path/to/irstlm
>>
>> --with-randlm=/path/to/randlm
>>
>> --with-srilm=/path/to/srilm
>>
>> you can find more details here
>> http://www.statmt.org/moses/?**n=Development.GetStarted<http://www.statmt.org/moses/?n=Development.GetStarted>
>> in section "Optional packages"
>>
>>
>> at run time, you can select the desired LM type in the configuration file.
>>
>>
>>
>> Nicola
>>
>>
>>
>> On Oct 31, 2013, at 5:01 PM, Read, James C wrote:
>>
>>  Does anybody have experience with installing RandLM and SRILM? Is it
>>> possible to compile Moses to support a variety of language model libraries
>>> and then configure to select which one to use for each experiment?
>>>
>>> thanks,
>>> James
>>>
>>> ______________________________**_________________
>>> Moses-support mailing list
>>> [email protected]
>>> http://mailman.mit.edu/**mailman/listinfo/moses-support<http://mailman.mit.edu/mailman/listinfo/moses-support>
>>>
>>
>> ______________________________**_________________
>> Moses-support mailing list
>> [email protected]
>> http://mailman.mit.edu/**mailman/listinfo/moses-support<http://mailman.mit.edu/mailman/listinfo/moses-support>
>>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>


-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to