small changes

This commit is contained in:
Marcin Junczys-Dowmunt 2015-01-08 16:45:40 +01:00
parent ed43bd6826
commit c2b6da0134
4 changed files with 7 additions and 4 deletions

View File

@ -3,5 +3,5 @@ alias deps : ..//z ..//boost_iostreams ..//boost_filesystem ../moses//moses ;
exe moses : Main.cpp deps ;
exe vwtrainer : MainVW.cpp deps ;
exe lmbrgrid : LatticeMBRGrid.cpp deps ;
alias programs : vwtrainer moses lmbrgrid ;
alias programs : moses lmbrgrid vwtrainer ;

View File

@ -153,7 +153,7 @@ int main(int argc, char** argv)
FeatureFunction::CallChangeSource(source);
// set up task of translating one sentence
// set up task of training one sentence
TrainingTask* task = new TrainingTask(source, *ioWrapper);
// execute task

View File

@ -9,7 +9,8 @@
namespace Moses
{
// Assuming a given column of TabbedSentence contains space separated source features
class VWFeatureSourceExternalFeatures : public VWFeatureSource,
public ThreadLocalFeatureStorage
{
@ -47,7 +48,6 @@ class VWFeatureSourceExternalFeatures : public VWFeatureSource,
UTIL_THROW_IF2(source.GetType() != TabbedSentenceInput,
"This feature function requires the TabbedSentence input type");
const TabbedSentence& tabbedSentence = static_cast<const TabbedSentence&>(source);
const std::string &column = tabbedSentence.GetColumn(m_column);

View File

@ -1,4 +1,5 @@
alias headers : : : : <include>. <include>..//moses// <include>.. ;
alias deps : ..//z ..//boost_iostreams ..//boost_filesystem ../moses//moses ;
boost 103600 ;
@ -11,5 +12,7 @@ if $(with-vw) {
obj VWPredictor.o : VWPredictor.cpp headers : <include>$(with-vw)/include/vowpalwabbit ;
alias vw_objects : VWPredictor.o VWPredictorFactory.o vw allreduce : : : <library>boost_program_options ;
lib classifier : [ glob *.cpp : VWPredictor.cpp VWPredictorFactory.cpp ] vw_objects headers ;
exe vwtrainer : MainVW deps ;
echo "Linking with Vowpal Wabbit" ;
}