diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-09 03:42:26 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-07-09 03:42:26 +0400 |
commit | df0d8586734fe2c584f2fc40ac5a040c5d71ede3 (patch) | |
tree | 8223fb83361eaa3c24d32b6069e5ba94059ac716 /moses-cmd | |
parent | 6ceba7f9c542b447e96425d135629f0fbd48ccfb (diff) |
variable number of translation component scores
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@18 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-cmd')
-rwxr-xr-x | moses-cmd/src/IOCommandLine.h | 2 | ||||
-rw-r--r-- | moses-cmd/src/ThreadMySQL.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/moses-cmd/src/IOCommandLine.h b/moses-cmd/src/IOCommandLine.h index 73bb8bdd1..691e35c37 100755 --- a/moses-cmd/src/IOCommandLine.h +++ b/moses-cmd/src/IOCommandLine.h @@ -78,7 +78,7 @@ inline Sentence *GetInput(std::istream &inputStream boost::trim(line); } while (line == ""); - Sentence *sentence = new Sentence(Source); + Sentence *sentence = new Sentence(Input); sentence->CreateFromString(factorOrder, line, factorCollection); return sentence; } diff --git a/moses-cmd/src/ThreadMySQL.cpp b/moses-cmd/src/ThreadMySQL.cpp index 2ec7f0b5a..b4e1239a2 100644 --- a/moses-cmd/src/ThreadMySQL.cpp +++ b/moses-cmd/src/ThreadMySQL.cpp @@ -195,7 +195,7 @@ Sentence *ThreadMySQL::ReadSentence(mysqlpp::Connection &conn) long idIn = row["idIn"] ,idOut= row["idOut"]; - Sentence *sentence = new Sentence(Source); + Sentence *sentence = new Sentence(Input); sentence->SetTranslationId(idOut); strme.str(""); @@ -212,13 +212,13 @@ Sentence *ThreadMySQL::ReadSentence(mysqlpp::Connection &conn) { FactorArray &factorArray = sentence->AddWord(); if (!row["surface"].is_null()) - factorArray[Surface] = m_factorCollection.AddFactor(Source, Surface, row["surface"].c_str()); + factorArray[Surface] = m_factorCollection.AddFactor(Input, Surface, row["surface"].c_str()); if (!row["pos"].is_null()) - factorArray[POS] = m_factorCollection.AddFactor(Source, POS, row["pos"].c_str()); + factorArray[POS] = m_factorCollection.AddFactor(Input, POS, row["pos"].c_str()); if (!row["stem"].is_null()) - factorArray[Stem] = m_factorCollection.AddFactor(Source, Stem, row["stem"].c_str()); + factorArray[Stem] = m_factorCollection.AddFactor(Input, Stem, row["stem"].c_str()); if (!row["morphology"].is_null()) - factorArray[Morphology] =m_factorCollection.AddFactor(Source, Morphology, row["morphology"].c_str()); + factorArray[Morphology] =m_factorCollection.AddFactor(Input, Morphology, row["morphology"].c_str()); } // update output translation to let people know we're currently translating it |