diff options
author | Wu, Ke <wuke@cs.umd.edu> | 2014-12-11 19:39:29 -0500 |
---|---|---|
committer | Wu, Ke <wuke@cs.umd.edu> | 2014-12-11 19:39:29 -0500 |
commit | 8fc9d9e2775338ef5c652f95476822c70ee27a00 (patch) | |
tree | 7fd96697e9d27689eaef2c594a27a9cdb409dad2 | |
parent | 09e9a08a69401a47b9494312fa073db86b50cccf (diff) |
Also read from attribute "src_tree"
-rw-r--r-- | decoder/ff_const_reorder.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/ff_const_reorder.cc b/decoder/ff_const_reorder.cc index 95546793..f1a6f7cb 100644 --- a/decoder/ff_const_reorder.cc +++ b/decoder/ff_const_reorder.cc @@ -1071,6 +1071,9 @@ ConstReorderFeature::~ConstReorderFeature() { // TODO void ConstReorderFeature::PrepareForInput(const SentenceMetadata& smeta) { string parse_file = smeta.GetSGMLValue("parse"); + if (parse_file.empty()) { + parse_file = smeta.GetSGMLValue("src_tree"); + } string srl_file = smeta.GetSGMLValue("srl"); assert(!(parse_file == "" && srl_file == "")); |