diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-04-19 02:45:27 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-04-19 02:45:27 -0400 |
commit | d016f7f28510f822b89c921da38006eae3877872 (patch) | |
tree | ca9ddf03bfb1f9796385f823efad1966e01cdc37 /rst_parser/dep_training.cc | |
parent | beb7edaacb57649cd1d0e20c6eb597ead111787e (diff) |
compute f
Diffstat (limited to 'rst_parser/dep_training.cc')
-rw-r--r-- | rst_parser/dep_training.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rst_parser/dep_training.cc b/rst_parser/dep_training.cc index e26505ec..ef97798b 100644 --- a/rst_parser/dep_training.cc +++ b/rst_parser/dep_training.cc @@ -18,6 +18,10 @@ static void ParseInstance(const string& line, int start, TrainingInstance* out, TrainingInstance& cur = *out; TaggedSentence& ts = cur.ts; EdgeSubset& tree = cur.tree; + ts.pos.clear(); + ts.words.clear(); + tree.roots.clear(); + tree.h_m_pairs.clear(); assert(obj.is<picojson::object>()); const picojson::object& d = obj.get<picojson::object>(); const picojson::array& ta = d.find("tokens")->second.get<picojson::array>(); |