mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
* Fix alignment of supersenses in init_model
This commit is contained in:
parent
fb68df91b8
commit
948ea9333a
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user