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 | a0c0770472130cdb1fd696b337091ab1c3dbc2d2 (patch) | |
| tree | 2d437724dbeabb4a11ce5b6aa5bd842639adc68e /decoder/ff_const_reorder.cc | |
| parent | 1a93e0e464b0dbaf89bd00c8d1b5da2249bdc886 (diff) | |
Also read from attribute "src_tree"
Diffstat (limited to 'decoder/ff_const_reorder.cc')
| -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 == "")); | 
