From 948ea9333a710da6fd5860df0b82641b83975480 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 4 Jul 2015 12:24:40 +0200 Subject: [PATCH] * Fix alignment of supersenses in init_model --- bin/init_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/init_model.py b/bin/init_model.py index 4a2811256..137722174 100644 --- a/bin/init_model.py +++ b/bin/init_model.py @@ -87,7 +87,7 @@ def _read_senses(loc): ss_type, lex_filenum, lex_id, head_word, head_id = lex_sense.split(':') pos = pos_tags[int(ss_type)] if pos is not None: - lexicon[lemma][pos].append(int(lex_filenum)) + lexicon[lemma][pos].append(int(lex_filenum) + 1) return lexicon