diff --git a/moses/FF/SparseHieroReorderingFeature.h b/moses/FF/SparseHieroReorderingFeature.h index 7059b7315..ec220af03 100644 --- a/moses/FF/SparseHieroReorderingFeature.h +++ b/moses/FF/SparseHieroReorderingFeature.h @@ -6,6 +6,9 @@ #include +#include "moses/Factor.h" +#include "moses/Sentence.h" + #include "StatelessFeatureFunction.h" #include "FFState.h" diff --git a/moses/FF/SparseHieroReorderingFeatureTest.cpp b/moses/FF/SparseHieroReorderingFeatureTest.cpp new file mode 100644 index 000000000..f05355df9 --- /dev/null +++ b/moses/FF/SparseHieroReorderingFeatureTest.cpp @@ -0,0 +1,36 @@ +/*********************************************************************** +Moses - factored phrase-based language decoder +Copyright (C) 2013- University of Edinburgh + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +***********************************************************************/ +#include + +#include + +#include "SparseHieroReorderingFeature.h" + +using namespace Moses; +using namespace std; + +BOOST_AUTO_TEST_SUITE(shrf) + +BOOST_AUTO_TEST_CASE(lexical_rule) +{ + SparseHieroReorderingFeature feature("name=shrf"); + +} + +BOOST_AUTO_TEST_SUITE_END() diff --git a/moses/Jamfile b/moses/Jamfile index 26a98c4c9..b34441585 100644 --- a/moses/Jamfile +++ b/moses/Jamfile @@ -64,7 +64,7 @@ lib moses : : #exceptions ThreadPool.cpp SyntacticLanguageModel.cpp - *Test.cpp Mock*.cpp + *Test.cpp Mock*.cpp FF/*Test.cpp FF/Factory.cpp ] headers FF_Factory.o LM//LM TranslationModel/CompactPT//CompactPT synlm ThreadPool rt @@ -74,5 +74,5 @@ alias headers-to-install : [ glob-tree *.h ] ; import testing ; -unit-test moses_test : [ glob *Test.cpp Mock*.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ; +unit-test moses_test : [ glob *Test.cpp Mock*.cpp FF/*Test.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ;