mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
fix typo in german_noun_chunks
This commit is contained in:
parent
24337175df
commit
fd8019ec92
|
@ -40,7 +40,7 @@ def german_noun_chunks(doc):
|
||||||
for rdep in doc[word.i].rights:
|
for rdep in doc[word.i].rights:
|
||||||
if rdep.pos == NOUN and rdep.dep == close_app:
|
if rdep.pos == NOUN and rdep.dep == close_app:
|
||||||
rbracket = rdep.i+1
|
rbracket = rdep.i+1
|
||||||
yield word.l_edge, rbracket, np_label
|
yield word.left_edge.i, rbracket, np_label
|
||||||
|
|
||||||
|
|
||||||
CHUNKERS = {'en': english_noun_chunks, 'de': german_noun_chunks}
|
CHUNKERS = {'en': english_noun_chunks, 'de': german_noun_chunks}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user