summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-10-12 11:48:35 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-10-12 11:48:35 -0400
commit2f1e7056cd12468581376d4c9bada7b8eef971be (patch)
tree763de1cba75ccb44eb3862f5f835e7567bb8754f /decoder
parentae175e763ddcdd231a7a410bf959809cf0fb67c6 (diff)
fix bug
Diffstat (limited to 'decoder')
-rw-r--r--decoder/tree2string_translator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/tree2string_translator.cc b/decoder/tree2string_translator.cc
index 9cf18268..08dae64c 100644
--- a/decoder/tree2string_translator.cc
+++ b/decoder/tree2string_translator.cc
@@ -32,11 +32,11 @@ static void ReadTree2StringGrammar(istream* in, Tree2StringGrammarNode* root, bo
++lc;
if (line.size() == 0 || line[0] == '#') continue;
std::vector<StringPiece> fields = TokenizeMultisep(line, " ||| ");
- if (has_multiple_states && fields.size() < 5) {
+ if (has_multiple_states && fields.size() < 4) {
cerr << "Expected at least 4 fields in rule file but line " << lc << " is:\n" << line << endl;
abort();
}
- if (!has_multiple_states && fields.size() < 4) {
+ if (!has_multiple_states && fields.size() < 3) {
cerr << "Expected at least 3 fields in rule file but line " << lc << " is:\n" << line << endl;
abort();
}