summaryrefslogtreecommitdiff
path: root/decoder/trule.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-12-16 23:49:58 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-12-16 23:49:58 -0500
commitac224d3f0c63760ad33fa04719d26d3a3e42495c (patch)
tree5ae56314f10afe067711c42360ba26a9110e0a9a /decoder/trule.cc
parentf39c95a0d0aff298d957aee018f4d6fbe87562a3 (diff)
better parsing errors, thx to nschneid, also increase limits on number of features
Diffstat (limited to 'decoder/trule.cc')
-rw-r--r--decoder/trule.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/trule.cc b/decoder/trule.cc
index 896f9f3d..c22baae3 100644
--- a/decoder/trule.cc
+++ b/decoder/trule.cc
@@ -117,7 +117,7 @@ bool TRule::ReadFromString(const string& line, bool strict, bool mono) {
// use lexer
istringstream il(line);
n_assigned=0;
- RuleLexer::ReadRules(&il,assign_trule,this);
+ RuleLexer::ReadRules(&il,assign_trule,"STRING",this);
if (n_assigned>1)
cerr<<"\nWARNING: more than one rule parsed from multi-line string; kept last: "<<line<<".\n";
return n_assigned;