Re: [Moses-support] How to add additional library when compiling Moses 1.0

2013-08-10 Thread Hieu Hoang
try adding the line
   external-lib boost_regex ;
to Jamroot. I'm not certain but it seems when the other libraries are
specified

On 10 August 2013 01:58, jian zhang jianzhan...@gmail.com wrote:

 Hi,

 My stateless XXX feature needs to use libboost_regex.so library,
 how/where can I modify the compile configuration to add the 
 -lboost_regexoption?


 Thanks,

 Jian Zhang

 ___
 Moses-support mailing list
 Moses-support@mit.edu
 http://mailman.mit.edu/mailman/listinfo/moses-support




-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


[Moses-support] How to output just translation

2013-08-10 Thread Kris Spring
I'm trying to get Moses to translate a file after running the training and
it seems to be doing it just one line at a time and is outputting all of the
stats for each line. Is there a way I can just have it run on the file and
generate JUST the translated document?  My goal is to compare it with work
done by a translator to see exactly how well it did. Basically I think I
need some help on the configuration and arguments when it runs.

 

I've been following the directions on the Baseline page and I'm attempting
to run the following:  ~/mosesdecoder/bin/moses -f
~/working2/binarised-model/moses.ini -i
~/corpus/news-commentary-v8.fr-en.true.fr

 

Are there any guidelines or things I should know on the format of files
provided for translation? (e.g. do I have to clean them?)

 

Many thanks, 
Kris

 

 



moses.ini
Description: Binary data
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


Re: [Moses-support] How to add additional library when compiling Moses 1.0

2013-08-10 Thread Kenneth Heafield
Look at jam-files/sanity.jam line 173, read the comment (the appropriate
value from boost.jam is REGEX_DYN_LINK), add a line like the ones that
follow, and then use it as a dependency by copying what
moses-cmd/Jamfile does.

On 08/10/13 19:04, Hieu Hoang wrote:
 try adding the line
external-lib boost_regex ;
 to Jamroot. I'm not certain but it seems when the other libraries are
 specified
 
 On 10 August 2013 01:58, jian zhang jianzhan...@gmail.com
 mailto:jianzhan...@gmail.com wrote:
 
 Hi,
 
 My stateless XXX feature needs to use libboost_regex.so library,
 how/where can I modify the compile configuration to add the
 -lboost_regex option?
 
 
 Thanks,
 
 Jian Zhang
 
 ___
 Moses-support mailing list
 Moses-support@mit.edu mailto:Moses-support@mit.edu
 http://mailman.mit.edu/mailman/listinfo/moses-support
 
 
 
 
 -- 
 Hieu Hoang
 Research Associate
 University of Edinburgh
 http://www.hoang.co.uk/hieu
 
 
 
 ___
 Moses-support mailing list
 Moses-support@mit.edu
 http://mailman.mit.edu/mailman/listinfo/moses-support
 
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


Re: [Moses-support] How to add additional library when compiling Moses 1.0

2013-08-10 Thread jian zhang
Thanks, Hieu and Kenneth, it is working now by configuring sanity.jam and
adding dependency.

Jian Zhang


On Sat, Aug 10, 2013 at 5:04 PM, Hieu Hoang hieu.ho...@ed.ac.uk wrote:

 try adding the line
external-lib boost_regex ;
 to Jamroot. I'm not certain but it seems when the other libraries are
 specified

 On 10 August 2013 01:58, jian zhang jianzhan...@gmail.com wrote:

 Hi,

 My stateless XXX feature needs to use libboost_regex.so library,
 how/where can I modify the compile configuration to add the 
 -lboost_regexoption?


 Thanks,

 Jian Zhang

 ___
 Moses-support mailing list
 Moses-support@mit.edu
 http://mailman.mit.edu/mailman/listinfo/moses-support




 --
 Hieu Hoang
 Research Associate
 University of Edinburgh
 http://www.hoang.co.uk/hieu




-- 
Jian Zhang
PLuTO Project http://www.pluto-patenttranslation.eu/
Centre for Next Generation Localisation (CNGL)http://www.cngl.ie/index.html
Dublin City University http://www.dcu.ie/
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support