Moses Support Digest: moses-chart error while compiling training scripts

[Moses-support] moses-chart: error while compiling training scripts

I’ve got the following error message when compiling the training scripts from the moses-chart trunk:

g++ tables-core.o extract.o SyntaxTree.o XmlTree.o -o extract
extract.o: In function `printAllHieroPhrases(SentenceAlignment&, int,
int, int, int, HoleCollection&)’:
moses-chart/scripts/training/phrase-extract/extract.cpp:561: undefined
reference to `HoleCollection::SortSourceHoles()’
collect2: ld returned 1 exit status
make[1]: *** [extract] Error 1
make[1]: Leaving directory `moses-chart/scripts/training/phrase-extract’
make: *** [compile] Error 1

Does anyone know what the problem is?
Thanks!

Jörg

Re:[Moses-support] moses-chart: error while compiling training scripts

hi joerg

svn up 1 more time. i forgot to check in the makefile

Re:[Moses-support] moses-chart: error while compiling training scripts

Hi Joerg,

it seems there’s a bug in scripts/training/phrase-extract/Makefile. You need to add “HoleCollection.o” to the compile line and dependencies of “extract”:

extract: tables-core.o [...] HoleCollection.o extract.h
g++ tables-core.o [...] HoleCollection.o -o extract

at least that’s what I did …

best regards
Christof

NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.

Related posts:

  1. Moses Support Digest:compiling moses 3 chart
  2. Moses Support Digest:Moses Error in training phrase
  3. Moses Support Digest: About mert-moses in mose-chart
  4. Moses Support Digest:Error compiling on Linux
  5. Moses Support Digest:about the moses-chart reordering
  6. Moses Support Digest: compiling on Mac
  7. Moses Support Digest:mt3_chart compilation error
  8. Moses Support Digest: About moses-chart
  9. Moses Support Digest: experiment management system and Moses scripts
  10. Moses Support Digest: Moses on the iPhone
This entry was posted in Moses, SMT and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>