write tree fragment string, not pointer

This commit is contained in:
Rico Sennrich 2014-11-04 10:54:21 +00:00
parent 40e8f2eca0
commit e0b3105fc0

View File

@ -416,7 +416,7 @@ void IOWrapper::OutputTreeFragmentsTranslationOptions(std::ostream &out, Applica
out << " ||| ";
if (const PhraseProperty *property = currTarPhr.GetProperty("Tree")) {
out << " " << property->GetValueString();
out << " " << *property->GetValueString();
} else {
out << " " << "noTreeInfo";
}
@ -442,7 +442,7 @@ void IOWrapper::OutputTreeFragmentsTranslationOptions(std::ostream &out, Applica
out << " ||| ";
if (const PhraseProperty *property = currTarPhr.GetProperty("Tree")) {
out << " " << property->GetValueString();
out << " " << *property->GetValueString();
} else {
out << " " << "noTreeInfo";
}