In Moses manual, the command for creating a language model with irstlm in basline system 2.3.4 is incorrect.

Source: Internet
Author: User

Written in the manual:

 ~/irstlm/bin/compile-lm     --text yes    news-commentary-v8.fr-en.lm.en.gz    news-commentary-v8.fr-en.arpa.en

After reading the help of compile-LM, I wrote:

compile-lm - compiles an ARPA format LM into an IRSTLM format oneUSAGE:       compile-lm [options] <input-file.lm> [output-file.blm]DESCRIPTION:       compile-lm reads a standard LM file in ARPA format and produces       a compiled representation that the IRST LM toolkit can quickly       read and process. LM file can be compressed.OPTIONS:Parameters:    Help:      print this help    d:      verbose output for --eval option; default is 0    debug:      verbose output for --eval option; default is 0    dict_load_factor:      sets the load factor for ngram cache; it should be a positive real value; default is 0    dub:      dictionary upperbound to compute OOV word penalty: default 10^7    e:      computes perplexity of the specified text file    eval:      computes perplexity of the specified text file    f:      filter a binary language model with a word list    filter:      filter a binary language model with a word list    h:      print this help    i:      builds an inverted n-gram binary table for fast access; default if false    invert:      builds an inverted n-gram binary table for fast access; default if false    keepunigrams:      filter by keeping all unigrams in the table, default  is true    ku:      filter by keeping all unigrams in the table, default  is true    l:      maximum level to load from the LM; if value is larger than the actual LM order, the latter is taken    level:      maximum level to load from the LM; if value is larger than the actual LM order, the latter is taken    memmap:      uses memory map to read a binary LM    mm:      uses memory map to read a binary LM    ngram_load_factor:      sets the load factor for ngram cache; it should be a positive real value; default is false    r:      computes N random calls on the specified text file    randcalls:      computes N random calls on the specified text file    s:      computes log-prob scores of n-grams from standard input    score:      computes log-prob scores of n-grams from standard input    sentence:      computes perplexity at sentence level (identified through the end symbol)    t:      output is again in text format; default is false    text:      output is again in text format; default is false    tmpdir:      directory for temporary computation, default is either the environment variable TMP if defined or "/tmp")

That is to say, the -- text parameter does not need to be followed by yes. I don't know why Hieu adds yes. Maybe the version is different? Try sending an email to mailing list tonight

In Moses manual, the command for creating a language model with irstlm in basline system 2.3.4 is incorrect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.