diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 01:00:34 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 01:00:34 +0300 |
commit | 173d958f4de905572307131a2e10c67612a9b4da (patch) | |
tree | 0d8ee3926dd138ed3ae3b8b19e10b1ab44fd19e0 /moses/Phrase.cpp | |
parent | 2683b58b537e12b23993c99f3a4e38b4106b2b34 (diff) | |
parent | ecbe68e6f87814134859d64e826bac9c56a4a15e (diff) |
Merge branch 'master' of github.com:moses-smt/mosesdecoder
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(); |