From 2f1e7056cd12468581376d4c9bada7b8eef971be Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 12 Oct 2014 11:48:35 -0400 Subject: fix bug --- decoder/tree2string_translator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decoder') 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 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(); } -- cgit v1.2.3