diff options
author | Patrick Simianer <p@simianer.de> | 2013-11-05 18:15:18 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-11-05 18:15:18 +0100 |
commit | a7a0773b0e299f71409cf4a13d18ea7db5ab3fc1 (patch) | |
tree | a7c570f748480fd17c82e82163d1c2dbd5315a3f /decoder/ff_parse_match.cc | |
parent | 5a23ee2ae792b629e0f52b9c7fdf293de60a0ca1 (diff) |
syntax features now read trees from files -- no more escaping!
Diffstat (limited to 'decoder/ff_parse_match.cc')
-rw-r--r-- | decoder/ff_parse_match.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/decoder/ff_parse_match.cc b/decoder/ff_parse_match.cc index 7c79302b..58026975 100644 --- a/decoder/ff_parse_match.cc +++ b/decoder/ff_parse_match.cc @@ -212,6 +212,9 @@ void ParseMatchFeatures::TraversalFeaturesImpl(const SentenceMetadata& smeta, } void ParseMatchFeatures::PrepareForInput(const SentenceMetadata& smeta) { - impl->InitializeGrids(smeta.GetSGMLValue("src_tree"), smeta.GetSourceLength()); + ReadFile f = ReadFile(smeta.GetSGMLValue("src_tree")); + string tree; + f.ReadAll(tree); + impl->InitializeGrids(tree, smeta.GetSourceLength()); } |