Archive forwatch and learn

error with moses-script-xxxxxx/training/mert-moses.pl

The following is wrong:

When tuning param for moses using mert-moses.pl, you should create the two folder mert/ and extractor/ first. Otherwise, you will got error by line 303 or 304 in mert-moses.pl .

If you get errors like

Exit code: 127
Failed to do extraction of statistics. at XXX/scripts-YYYYMMMDD-XXXX/training/mert-moses.pl line 662.

set –mertdir = XXX/moses/mert/, which contains extractor etc.

Comments

java: count # of lines

Comments

[FYT] set environment variables before using moses

export SCRIPTS_ROOTDIR=/full-path-to-workspace/bin/moses-scripts/scripts-YYYYMMDD-HHMM

Comments

[FYT][moses] summary of missing packages

To install moses on ubuntu10.04, you have to install additional packages that are not shipped with the OS. Here is a summary of the missing packages. Hope it can help you.

A. When installing SRILM:

  • csh
  • tcl8.5
  • tcl8.5-dev
  • dpkg-awk

B. When installing Moses:

  • zlib1g-dev
  • boost (optional)

Comments (1)

[FYT][moses] zlib.h issue

When compiling moses on ubuntu, it may give error message like “_gzf was not declared in this scope”.

This is because the missing of “zlib1g-dev” package.

Comments

[FYT] install SRILM

In order to use Moses, I want to install SRILM.

http://hi.baidu.com/wit_yd/blog/item/6b6681272c8ed206918f9dbe.html

http://weiqk.spaces.live.com/Blog/cns!2115755AE5F9E79!221.entry

These resources help me a lot. Highly recommend to those Ubuntu users.

Comments

Ubuntu: Customize terminal header

By default, the terminal header is usually long and unattractive. Change it by modifying “~/.bashrc” file. We want the PS1 line to be like:

PS1=’@\W\$ ‘

And here are some options you may use to customize your own terminal:

\a     an ASCII bell character (07)
\d     the date in "Weekday Month Date" format (e.g., "Tue May 26")
\D{format} the format is passed to strftime(3) and the result is inserted into the  prompt  string;  an  empty  format
results in a locale-specific time representation.  The braces are required
\e     an ASCII escape character (033)
\h     the hostname up to the first `.'
\H     the hostname
\j     the number of jobs currently managed by the shell
\l     the basename of the shell's terminal device name
\n     newline
\r     carriage return
\s     the name of the shell, the basename of $0 (the portion following the final slash)
\t     the current time in 24-hour HH:MM:SS format
\T     the current time in 12-hour HH:MM:SS format
\@     the current time in 12-hour am/pm format
\A     the current time in 24-hour HH:MM format
\u     the username of the current user
\v     the version of bash (e.g., 2.00)
\V     the release of bash, version + patch level (e.g., 2.00.0)
\w     the current working directory, with $HOME abbreviated with a tilde
\W     the basename of the current working directory, with $HOME abbreviated with a tilde
\!     the history number of this command
\#     the command number of this command
\$     if the effective UID is 0, a #, otherwise a $
\nnn   the character corresponding to the octal number nnn
\\     a backslash
\[     begin  a sequence of non-printing characters, which could be used to embed a terminal control sequence into
the prompt
\]     end a sequence of non-printing characters
# Thanks for the post by PurposeOfReason (http://ubuntuforums.org/showthread.php?t=674446)

Comments

Ubuntu - randomly freezing caps lock blinking flashing

http://ubuntuforums.org/showthread.php?t=968792

System lock-ups with Intel 4965 wireless
The version of the iwlagn wireless driver for Intel 4965 wireless chipsets included in Linux kernel version 2.6.27 causes kernel panics when used with 802.11n or 802.11g networks. Users affected by this issue can install the linux-backports-modules-XXX (e.g.  -intrepid) package, to install a newer version of this driver that corrects the bug. (Because the known fix requires a new version of the driver, it is not expected to be possible to include this fix in the main kernel package.)

Comments

Have problems with screen resolution on Ubuntu? Read this.

Comments

possibly undefined macro: AC_PROG_LIBTOOL

To fix “possibly undefined macro: AC_PROG_LIBTOOL” while installing Moses : Install the package — libtool

Comments

« Previous entries