mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-05 15:58:03 +03:00
small changes
This commit is contained in:
parent
ed43bd6826
commit
c2b6da0134
@ -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 ;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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" ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user