diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-25 16:37:59 +0300 |
commit | 97b2aa5663e97079145fb494bf97e1b2997b4161 (patch) | |
tree | f8a68fa4ea40bb99c21cd26e7f02a27ddcc48187 /moses/XmlOption.cpp | |
parent | 84b1c4b4c0c02362cdb35b55e08196d03b993baf (diff) |
WordsRange -> Range
Diffstat (limited to 'moses/XmlOption.cpp')
-rw-r--r-- | moses/XmlOption.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/XmlOption.cpp b/moses/XmlOption.cpp index 38b767d8a..941eb2d24 100644 --- a/moses/XmlOption.cpp +++ b/moses/XmlOption.cpp @@ -29,7 +29,7 @@ #include <boost/unordered_map.hpp> #include "Util.h" #include "StaticData.h" -#include "WordsRange.h" +#include "Range.h" #include "TargetPhrase.h" #include "ReorderingConstraint.h" #include "FactorCollection.h" @@ -451,7 +451,7 @@ bool ProcessAndStripXMLTags(string &line, vector<XmlOption*> &res, ReorderingCon // convert from prob to log-prob float scoreValue = FloorScore(TransformScore(probValue)); - WordsRange range(startPos + offset,endPos-1 + offset); // span covered by phrase + Range range(startPos + offset,endPos-1 + offset); // span covered by phrase TargetPhrase targetPhrase(firstPt); // targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i],factorDelimiter, NULL); targetPhrase.CreateFromString(Output, outputFactorOrder,altTexts[i], NULL); |