Closed michaelhutt closed 9 years ago
That was a missing #include in OxLM.cpp. Fixed.
New error:
moses/LM/oxlm/OxLM.cpp:182:46: error: invalid initialization of reference of type 'const Moses::InputType&' from expression of type 'boost::shared_ptr<moses::InputType>'
Plus the same aforementioned problems in SourceOxLM.cpp.
I got duped into believing that --with-oxlm was sufficient because the brilliant bjam setup doesn't actually check correctness of command line arguments, so if you just provide --with-oxlm bjam just ploughs through (including all the regression tests without ever complaining). Yes, bjam is clearly the best build system ever! End of rant. Should work now.
On Thu, May 21, 2015 at 5:40 PM, Michael Hutt notifications@github.com wrote:
New error:
moses/LM/oxlm/OxLM.cpp:182:46: error: invalid initialization of reference of type 'const Moses::InputType&' from expression of type 'boost::shared_ptrmoses::InputType'
Plus the same aforementioned problems in SourceOxLM.cpp.
— Reply to this email directly or view it on GitHub https://github.com/moses-smt/mosesdecoder/issues/113#issuecomment-104348168 .
Ulrich Germann Senior Researcher School of Informatics University of Edinburgh
Commit dcb8e5d3e0 seems to have broken OxLM support (--with-oxlm option). The error (icc) is:
moses/LM/oxlm/SourceOxLM.cpp
has the same issue on line 106 (and also should changettasksptr
tottask
). Line 107 passes two parameters toBilingualLM::InitializeForInput
, which can only accept one parameter.If I use gcc, the error is:
moses/LM/oxlm/OxLM.cpp:181:34: error: invalid use of incomplete type 'class Moses::TranslationTask'
.