it should work. Can I have a look at the moses-nnjm.ini file. Also,
recompile everything, just in case
./bjam -j4 -a
On 24/12/14 11:38, Xiaoqiang Feng wrote:
Hi, all
I want to add a new stateful feature function to moses. This new
feature is neural network joint model which is proposed
in "Fast and robust neural network joint models for statistical
machine translation (ACL 2014)".
I added two files "NNJMStatefulFF.h, NNJMStatefulFF.cpp" into moses/FF
directory. And I have modified the Factory.cpp with
adding two lines code: "#include "moses/FF/NNJMStatefulFF.h;
MOSES_FNAME2("NNJM", NNJMStatefulFF);".
I recompile the whole project in moses root with command "./bjam -j4",
and the result showed "SUCCESS".
Then I want to test the NNJM feature, here I just want to test to see
whether this new feature works, which means I don't want to tuning the
parameter of NNJM. So I modefied the moses.ini with adding the NNJM
feature and run the command "~/home1/mosesdecoder/bin/moses -f
moses-nnjm.ini". But it did not work, the information is as follow:
"Exception: moses/FF/Factory.cpp:275 in void
Moses::FeatureRegistry::Construct(const string&, const string&) threw
UnknownFeatureException because `i == registry_.end()'.
Feature name NNJM is not registered."
I want to know how can I register this new feature. Do I need to retrain
Thanks,
Xiaoqiang Feng
_______________________________________________
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