Hello Hieu, Thanks for the answer. However, the default LM in the moses.ini is KENLM already, and when I run the following command I get the same error always: or do you mean another way of configuring this moses.ini?
================================================= ../bin/moses -f string-to-tree/moses.ini < string-to-tree/in > out.stt dyld: Library not loaded: /Users/hieu/workspace/irstlm/irstlm-5.80.08/trunk/lib/libirstlm.0.dylib Referenced from: /Desktop/Workspace/virtualenvin/moses/moses/sample-models/../bin/moses Reason: image not found Abort trap: 6 ================================================= It seems like string-to-tree doesn't use phrase-table, and here is the moses.ini under ~/string-to-tree: ######################### ### MOSES CONFIG FILE ### ######################### # input factors [input-factors] 0 # mapping steps [mapping] 0 T 0 [feature] KENLM name=LM factor=0 order=3 num-features=1 path=lm/europarl.srilm.gz WordPenalty UnknownWordPenalty PhraseDictionaryMemory input-factor=0 output-factor=0 path=string-to-tree/rule-table num-features=1 table-limit=20 [weight] WordPenalty0= 0 LM= 0.5 PhraseDictionaryMemory0= 0.5 [cube-pruning-pop-limit] 1000 [non-terminals] X S On Tue, Nov 7, 2017 at 12:07 AM, Hieu Hoang <[email protected]> wrote: > Yes, it is easier to use KenLM as it is already included with Moses. To > use it, in the moses.ini file replace 'IRSTLM' with 'KENLM' > > 1 thing to note about running Moses on OSX - the Compact phrase-table > crashes on OSX. I recommend using Probing PT > > > > On 07/11/17 01:33, James wrote: > > Hello, > > I'm trying to test a simple sentence using the new Moses (release 4.0) -- > for example, "echo 'das ist ein kleines haus' | moses -f > phrase-model/moses.ini -t >out" > > O've just downloaded the binary version (macOS.zip > <http://www.statmt.org/moses/RELEASE-4.0/binaries/macOS.zip>) and tried > to run using a default setting. > However, it seems like the binary version was built using already > pre-built libraries like "cmph-2.0", "xmlrpc-c-1.33.17", "irstlm-5.80.08". > I could compile most of these, but I cannot compile "irstlm-5.80.08" on > my macair (MacOs Sierra version 10.12.6). > So, I'm trying to use another language model to test this binary Moses but > don't know how to configure or set this option. > Could you let me know if there is a way to set a different language model > (kenLM : which is already included in Moses) for this binary moses? > > Thanks in advance. > > > > _______________________________________________ > Moses-support mailing > [email protected]http://mailman.mit.edu/mailman/listinfo/moses-support > > > -- > Hieu Hoanghttp://moses-smt.org/ > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
