Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2016-09-28 17:10:43 +0300
committerHieu Hoang <hieuhoang@gmail.com>2016-09-28 17:10:43 +0300
commit0005e98b2674906162ce7945c5edd6a42c9ca418 (patch)
treec893063ac2db731429d6bc3ef3cae04ae52835b2
parent6d276661e009bcf8a1e70e21b01564dc8b7c758e (diff)
don't unescape & characters /Vito MANDORINO
-rw-r--r--contrib/moses2/PhraseBased/Sentence.cpp2
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;