Running Moses Under Windows

From Apertium
Revision as of 17:46, 8 November 2007 by Msalperen (talk | contribs) (New page: *Download the Windows executable (exe) file from Surceforge.net http://sourceforge.net/project/showfiles.php?group_id=171520&package_id=196018&release_id=511989 *Download the sample mode...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Download the Windows executable (exe) file from Surceforge.net

http://sourceforge.net/project/showfiles.php?group_id=171520&package_id=196018&release_id=511989

  • Download the sample model from statmt.org

http://www.statmt.org/moses/download/sample-models.tgz

  • Rename the executable file moses-cmd.2007-05-29.exe to moses.exe (just for simplicity, not necessary)
  • Put all the files under a certain folder (say c:\translation), You should first extract the archived model. The folder must include the exexutable file (Moses), lm folder, phrase-model folder and moses.ini file, the example file called "in" without any file extension and the empty output file called "out". Copy "lm" folder to the upper level (i.e to your root directory c:\ if you extracted all files to c:\translation)
  • Start DOS command line from Windows start menu (click run and type cmd, then press enter)
  • In DOS command line, get into your example folder using cd (change directory) command (get into c:\translation if you called that way).
  • type moses -f moses.ini < in > out
  • Translation must take 10-20 seconds and you should see the previously empty file named "out" filled with the translated sentence: This is a small house