Mac osx also ships with this bsd version of split and sort.

Moses requires the gnu version, which macports installs as gsplit and
gsort. These are used if they exist in $PATH

Is there a similar program to macports on freebsd that can install gnu
utils? Or can you manually put gsplit and gsort in your $PATH folder?

Hieu
Sent while bumping into things

On 4 Mar 2013, at 06:10 AM, Jacob Dlougach <[email protected]> wrote:

It seems that some of the moses scripts aren't compatible with FreeBSD
environment. Here is what I get during training:

Executing:
/place/home/jacob/mosesdecoder/scripts/generic/extract-parallel.perl 24
split "sort    "
/place/home/jacob/mosesdecoder/scripts/../bin/extract-rules
/place/home/jacob/tr-en/hiero_moses/training/raw.en
/place/home/jacob/tr-en/hiero_moses/training/raw.tr/place/home/jacob/tr-en/hiero_moses/training/model/aligned.grow-diag-final-and
/place/home/jacob/tr-en/hiero_moses/training/model/extract --GlueGrammar
/place/home/jacob/tr-en/hiero_moses/training/model/glue-grammar --MaxSpan 5
--GZOutput
Started Mon Mar  4 02:42:02 2013
total=12727070 line-per-split=530295
split -d -l 530295 -a 5 /place/home/jacob/tr-en/hiero_moses/training/raw.en
/place/home/jacob/tr-en/hiero_moses/training/model/tmp.15472/target.split
-d -l 530295 -a 5
/place/home/jacob/tr-en/hiero_moses/training/raw.tr/place/home/jacob/tr-en/hiero_moses/training/model/tmp.15472/source.split
-d -l 530295 -a 5
/place/home/jacob/tr-en/hiero_moses/training/model/aligned.grow-diag-final-and
/place/home/jacob/tr-en/hiero_moses/training/model/tmp.15472/align.split:
illegal option -- d
split: illegal option -- d
usage: split [-l line_count] [-a suffix_length] [file [prefix]]
       split -b byte_count[K|k|M|m|G|g] [-a suffix_length] [file [prefix]]
       split -n chunk_count [-a suffix_length] [file [prefix]]
       split -p pattern [-a suffix_length] [file [prefix]]
usage: split [-l line_count] [-a suffix_length] [file [prefix]]
       split -b byte_count[K|k|M|m|G|g] [-a suffix_length] [file [prefix]]
       split -n chunk_count [-a suffix_length] [file [prefix]]
       split -p pattern [-a suffix_length] [file [prefix]]
split: illegal option -- d
usage: split [-l line_count] [-a suffix_length] [file [prefix]]
       split -b byte_count[K|k|M|m|G|g] [-a suffix_length] [file [prefix]]
       split -n chunk_count [-a suffix_length] [file [prefix]]
       split -p pattern [-a suffix_length] [file [prefix]]

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to