diff options
Diffstat (limited to 'moses/XmlOption.cpp')
-rw-r--r-- | moses/XmlOption.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/XmlOption.cpp b/moses/XmlOption.cpp index fbd336448..cf47d8aab 100644 --- a/moses/XmlOption.cpp +++ b/moses/XmlOption.cpp @@ -486,7 +486,8 @@ ProcessAndStripXMLTags(AllOptions const& opts, string &line, // system would have "word", a two-factor system would have // "word|class", and so on. vector<FactorType> fakeOutputFactorOrder; - size_t factorsInAltText = Tokenize(altTexts[i], StaticData::Instance().GetFactorDelimiter()).size(); + // Factors in first word of alt text + size_t factorsInAltText = TokenizeMultiCharSeparator(Tokenize(altTexts[i])[0], StaticData::Instance().GetFactorDelimiter()).size(); for (size_t f = 0; f < factorsInAltText; ++f) { fakeOutputFactorOrder.push_back(f); } |