* Fix alignment of supersenses in init_model

This commit is contained in:
Matthew Honnibal 2015-07-04 12:24:40 +02:00
parent fb68df91b8
commit 948ea9333a

View File

@ -87,7 +87,7 @@ def _read_senses(loc):
ss_type, lex_filenum, lex_id, head_word, head_id = lex_sense.split(':') ss_type, lex_filenum, lex_id, head_word, head_id = lex_sense.split(':')
pos = pos_tags[int(ss_type)] pos = pos_tags[int(ss_type)]
if pos is not None: if pos is not None:
lexicon[lemma][pos].append(int(lex_filenum)) lexicon[lemma][pos].append(int(lex_filenum) + 1)
return lexicon return lexicon