手册里写到:

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

经过查阅compile-lm的帮助里写到:

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 producesa compiled representation that the IRST LM toolkit can quicklyread and process. LM file can be compressed.OPTIONS:
Parameters:Help:      print this helpd:      verbose output for --eval option; default is 0debug:      verbose output for --eval option; default is 0dict_load_factor:      sets the load factor for ngram cache; it should be a positive real value; default is 0dub:      dictionary upperbound to compute OOV word penalty: default 10^7e:      computes perplexity of the specified text fileeval:      computes perplexity of the specified text filef:      filter a binary language model with a word listfilter:      filter a binary language model with a word listh:      print this helpi:      builds an inverted n-gram binary table for fast access; default if falseinvert:      builds an inverted n-gram binary table for fast access; default if falsekeepunigrams:      filter by keeping all unigrams in the table, default  is trueku:      filter by keeping all unigrams in the table, default  is truel:      maximum level to load from the LM; if value is larger than the actual LM order, the latter is takenlevel:      maximum level to load from the LM; if value is larger than the actual LM order, the latter is takenmemmap:      uses memory map to read a binary LMmm:      uses memory map to read a binary LMngram_load_factor:      sets the load factor for ngram cache; it should be a positive real value; default is falser:      computes N random calls on the specified text filerandcalls:      computes N random calls on the specified text files:      computes log-prob scores of n-grams from standard inputscore:      computes log-prob scores of n-grams from standard inputsentence:      computes perplexity at sentence level (identified through the end symbol)t:      output is again in text format; default is falsetext:      output is again in text format; default is falsetmpdir:      directory for temporary computation, default is either the environment variable TMP if defined or "/tmp")

也就是说 --text参数后面无需再加yes,不知道为什么Hieu加了yes,可能是版本不同?今晚给mailing list发个邮件试试

转载于:https://www.cnblogs.com/hitnoah/p/3932888.html

Moses manual 中Basline System 2.3.4节用IRSTLM创建语言模型的命令有误相关推荐

  1. 如何将struct System.Byte byte []转换为C#中的System.IO.Stream对象?

    如何将struct System.Byte byte[]转换为C#中的System.IO.Stream对象? #1楼 查看MemoryStream类. #2楼 您正在寻找MemoryStream.Wr ...

  2. 【Android 逆向】Android 进程注入工具开发 ( 注入代码分析 | 获取 远程 目标进程 中的 /system/lib/libc.so 动态库中的 mmap 函数地址 )

    文章目录 一.获取 远程 目标进程 中的 /system/lib/libc.so 动态库中的 mmap 函数地址 二.从 /proc/pid/maps 文件中获取 指定 进程 中的 /system/l ...

  3. C#中的System.Net.Sockets内部实现原理

    2019独角兽企业重金招聘Python工程师标准>>> 实现 Berkeley 套接字接口. MSDN注解: Socket 类为网络通信提供了一套丰富的方法和属性.Socket 类允 ...

  4. 原来在UNITY中使用system.io下的所有函数都可以用相对路径 : Assets/xx

    原来在UNITY中使用system.io下的所有函数都可以用相对路径 : Assets/xx 代码如下图,这样就不用在绝对路径和相对路径之间不断转换了. 想要得到绝对路径时就傅 Application ...

  5. python中os.system.获取输出信息_python中os.system()的返回值

    [python中os.system()的返回值] 如果第三方程序返回的是布尔型返回值,os.system会将true转为1,false转为0进行返回. 问题: /bin/xxx.py是一个返回码为1的 ...

  6. python os.system保存返回值_python中os.system的返回值

    python中os.system()的返回值 1.python中的 os.system(cmd)的返回值与linux命令返回值(具体参见本文附加内容)的关系 你们都习惯用os.systemv()函数执 ...

  7. 为《理解C#中的System.In32和int:并非鸡和鸡蛋 》做个续

    方才看到 笼民 的文章 理解C#中的System.In32和int:并非鸡和鸡蛋 在确定了"非鸡和鸡蛋"之后,我又很好奇,那他们到底是什么样的鸡,什么样的蛋. 就好像我当初很诧异s ...

  8. Net core中使用System.Drawing对上传的图片流进行压缩

    由于net core 中默认没有System.Drawing,可以通过nuget下载一个来代替System.Drawing.Common 直接压缩图片 /// <summary> /// ...

  9. linux运行c语言pause,c++中的system(pause)的作用和含义解析

    简单来说就是暂停的意思,一般在LINUX编程时会用到,等待接收信号,才会重新运行 . 在进行C/C++编程的时候,在运行程序查看输出效果时,会出现窗口闪一下就关闭的情况. 在C语言中一般通过添加get ...

最新文章

  1. windows7/10开启客户端telnet命令解决“‘telnet‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。”
  2. 安装最新版本的ReSharper导致原生全局搜索工具的消失问题
  3. apk私钥_使用source/build/target/product/security/中的密钥将apk签署为系统
  4. 服务器 远程存储,数据储存——远程服务器存储——框架方式
  5. 微软Build 2017首日主角AI 同时发布.NET Core 2.0 Preview 1
  6. 双十一变身大型奥数竞赛现场?数学不好的你请转场
  7. CF827F-Dirty Arkady‘s Kitchen【堆】
  8. 经验38--新闻内容处理
  9. ssh user@host command 与login host运行shell的区别
  10. Vue2学习笔记:计算属性(computed)
  11. python 传参open
  12. nvcc-V 程序“nvcc”尚未安装。 您可以使用以下命令安装: sudo apt install nvidia-cuda-toolkit
  13. 微信背后的产品观,背后究竟是什么?
  14. Mysql数据库实现分页查询
  15. ZED 视频 SVO 转换 其他格式
  16. 4千多个表情斗图图片大全ACCESS\EXCEL
  17. 图片加载框架Glide
  18. 亚马逊FBA基本介绍
  19. 手把手带你爬取猫眼电影,正则解析
  20. 数字系统设计Logsim实例 自主设计 学号音乐盒

热门文章

  1. 黄聪:bootstrap中模态框modal在苹果手机上会失效
  2. 模糊聚类算法(FCM)和硬聚类算法(HCM)的VB6.0实现及
  3. 拯救不靠谱:他是怎样将技术外包做到纠纷率3%?
  4. 电信级的RSA加密后的密码的破解方法
  5. 易被销售员忽略的销售细节
  6. 360回扫样本存储系统Xstore的设计与实践
  7. erlang的dict源码解析(2)
  8. 电脑显示苹果5s未连接服务器怎么办啊,iphone5s数据线连接不上电脑怎么办【解决方法】...
  9. Spring事务失效 -方法内部调用
  10. Tomcat container 内部容器