Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2014-05-31 17:33:31 +0400
committerUlrich Germann <ugermann@inf.ed.ac.uk>2014-05-31 17:33:31 +0400
commit249c40ec74f182cf92600341ea07de6666a6281a (patch)
treec07793b80139dde5bf1457c4b909fc51c1039eee /moses/TreeInput.cpp
parentc4528753433dc6a8be5c50676504e1f68724f275 (diff)
Eliminated factor delimiter from the parameters of
Phrase.CreateFromString() and Sentence.CreateFromString(), as it was never used in those functions anyway --- Word.CreateFromString() retrieves the factor delimiter from StaticData directly.
Diffstat (limited to 'moses/TreeInput.cpp')
-rw-r--r--moses/TreeInput.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/TreeInput.cpp b/moses/TreeInput.cpp
index 443b52ab8..65c5c0b42 100644
--- a/moses/TreeInput.cpp
+++ b/moses/TreeInput.cpp
@@ -44,7 +44,7 @@ bool TreeInput::ProcessAndStripXMLTags(string &line, std::vector<XMLParseOutput>
// keep this handy for later
const vector<FactorType> &outputFactorOrder = StaticData::Instance().GetOutputFactorOrder();
- const string &factorDelimiter = StaticData::Instance().GetFactorDelimiter();
+ // const string &factorDelimiter = StaticData::Instance().GetFactorDelimiter();
// loop through the tokens
for (size_t xmlTokenPos = 0 ; xmlTokenPos < xmlTokens.size() ; xmlTokenPos++) {
@@ -170,7 +170,8 @@ bool TreeInput::ProcessAndStripXMLTags(string &line, std::vector<XMLParseOutput>
for (size_t i=0; i<altTexts.size(); ++i) {
// set target phrase
TargetPhrase targetPhrase;
- targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i],factorDelimiter, NULL);
+ // targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i],factorDelimiter, NULL);
+ targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i], NULL);
// set constituent label
string targetLHSstr;