mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
don't unescape & characters - SCFG /Vito MANDORINO
This commit is contained in:
parent
0005e98b26
commit
cab564f607
@ -48,7 +48,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;
|
||||
|
Loading…
Reference in New Issue
Block a user