diff options
author | mjdenkowski <michael.j.denkowski@gmail.com> | 2013-12-29 17:16:43 -0500 |
---|---|---|
committer | mjdenkowski <michael.j.denkowski@gmail.com> | 2013-12-29 17:16:43 -0500 |
commit | 791301036d6bfa406c2d5222032b204f7d4943ee (patch) | |
tree | 0a76fdd52700ac43864be62124a43b4f2e940a8b /decoder/grammar.cc | |
parent | b12f48112213cbbde519b8aabd02b2c57bf0948d (diff) | |
parent | 3c22963a360346381588350962499d1a76a89c10 (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/grammar.cc')
-rw-r--r-- | decoder/grammar.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/grammar.cc b/decoder/grammar.cc index 160d00e6..439e448d 100644 --- a/decoder/grammar.cc +++ b/decoder/grammar.cc @@ -121,11 +121,11 @@ static void AddRuleHelper(const TRulePtr& new_rule, const unsigned int ctf_level void TextGrammar::ReadFromFile(const string& filename) { ReadFile in(filename); - ReadFromStream(in.stream()); + RuleLexer::ReadRules(in.stream(), &AddRuleHelper, filename, this); } void TextGrammar::ReadFromStream(istream* in) { - RuleLexer::ReadRules(in, &AddRuleHelper, this); + RuleLexer::ReadRules(in, &AddRuleHelper, "UNKNOWN", this); } bool TextGrammar::HasRuleForSpan(int /* i */, int /* j */, int distance) const { |