diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 00:25:13 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 00:25:13 +0300 |
commit | 1f6a787c2a30117cea85cc226f56c3322856472f (patch) | |
tree | 4f7fdfb73087f7c2c4022678011b369996ccad7e /moses/Phrase.cpp | |
parent | 2683b58b537e12b23993c99f3a4e38b4106b2b34 (diff) | |
parent | 92091012924bb29e0fd4e44dbc9e52aa15814d08 (diff) |
Merge branch 'perf_baseline' of github.com:hieuhoang/mosesdecoder into perf_baseline
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r-- | moses/Phrase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/Phrase.cpp b/moses/Phrase.cpp index d689b2ddb..d97f6d712 100644 --- a/moses/Phrase.cpp +++ b/moses/Phrase.cpp @@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "StaticData.h" // GetMaxNumFactors #include "util/string_piece.hh" +#include "util/string_stream.hh" #include "util/tokenize_piece.hh" using namespace std; @@ -117,7 +118,7 @@ std::string Phrase::GetStringRep(const vector<FactorType> factorsToPrint) const { bool markUnknown = StaticData::Instance().GetMarkUnknown(); - stringstream strme; + util::StringStream strme; for (size_t pos = 0 ; pos < GetSize() ; pos++) { if (markUnknown && GetWord(pos).IsOOV()) { strme << StaticData::Instance().GetUnknownWordPrefix(); |