summaryrefslogtreecommitdiff
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
commitf83b9538087ca0cdc8289184c1e3e87c70b52a8e (patch)
tree773d56370aae532f790bc0805af5fb975c4368fd
parent787792aedf4b6f9d90797814f8f719c39b82f0bb (diff)
fix bug
-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();
}