diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2016-09-28 17:10:43 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2016-09-28 17:10:43 +0300 |
commit | 0005e98b2674906162ce7945c5edd6a42c9ca418 (patch) | |
tree | c893063ac2db731429d6bc3ef3cae04ae52835b2 | |
parent | 6d276661e009bcf8a1e70e21b01564dc8b7c758e (diff) |
don't unescape & characters /Vito MANDORINO
-rw-r--r-- | contrib/moses2/PhraseBased/Sentence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/moses2/PhraseBased/Sentence.cpp b/contrib/moses2/PhraseBased/Sentence.cpp index 2021da7d7..d0c728530 100644 --- a/contrib/moses2/PhraseBased/Sentence.cpp +++ b/contrib/moses2/PhraseBased/Sentence.cpp @@ -51,7 +51,7 @@ Sentence *Sentence::CreateFromStringXML(MemPool &pool, FactorCollection &vocab, string str2 = "<xml>" + str + "</xml>"; pugi::xml_parse_result result = doc.load(str2.c_str(), - pugi::parse_default | pugi::parse_comments); + pugi::parse_cdata | pugi::parse_wconv_attribute | pugi::parse_eol | pugi::parse_comments); pugi::xml_node topNode = doc.child("xml"); std::vector<std::string> toks; |