Hi Hieu,


Thanks for your reply. Yep - I downloaded latest git version 
(de8a2e7667fe2bde9df0ef5a32b3b85b6469eb0f) and found out following problems:



1.       During compilation;  gcc version 4.6.3. produces error in:

gcc.compile.c++ 
scripts/training/phrase-extract/pcfg-common/bin/gcc-4.6.3/release/debug-symbols-on/link-static/threading-multi/xml_tree_parser.o

In file included from 
scripts/training/phrase-extract/pcfg-common/pcfg_tree.h:24:0,

                 from 
scripts/training/phrase-extract/pcfg-common/xml_tree_parser.h:24,

                 from 
scripts/training/phrase-extract/pcfg-common/xml_tree_parser.cc:20:

scripts/training/phrase-extract/pcfg-common/syntax_tree.h: In destructor 
'virtual Moses::PCFG::SyntaxTreeBase<T, DerivedType>::~SyntaxTreeBase()':

scripts/training/phrase-extract/pcfg-common/syntax_tree.h:83:8: error: 'size_t' 
was not declared in this scope

scripts/training/phrase-extract/pcfg-common/syntax_tree.h:83:8: note: suggested 
alternatives:

/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../../include/c++/4.6.3/x86_64-redhat-linux/bits/c++config.h:1737:26:
 note:   'std::size_t'

/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../../include/c++/4.6.3/x86_64-redhat-linux/bits/c++config.h:1737:26:
 note:   'std::size_t'

scripts/training/phrase-extract/pcfg-common/syntax_tree.h:83:15: error: 
expected ';' before 'i'

scripts/training/phrase-extract/pcfg-common/syntax_tree.h:83:22: error: 'i' was 
not declared in this scope



It means, size_t should be replaced by std::size_t. After this, compilation 
works fine. I would do this but I'm not with familiar with git ...



2. during training(extract phrases ;step 5) there is a command:

/home/mee/moses/scripts//generic/extract-parallel.perl 1 split "sort    " 
/home/mee/new/moses/scripts//training/phrase-extract/extract 
lotus.tok.rem.clean.lw.cs lotus.tok.rem.clean.lw.en 
./model/aligned.grow-diag-final-and ./model/extract 7 orientation --model 
wbe-msd --GZOutput



Which executes commands like:

ln -s lotus.tok.rem.clean.lw.en 
/home/mee/lotus/train/model/tmp.22477/source.00000

ln: failed to create symbolic link 
`/home/mee/lotus/train/model/tmp.22477/source.00000': No such file or directory



The problem is that directory tmp.22477 is not created yet. Presumable, some 
mkdir command should predecease symbolic link creation.



Are my assumptions correct?



Thx, Tomas






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

Reply via email to