fix whitespace

This commit is contained in:
Wolfgang Seeker 2016-05-04 07:40:38 +02:00
parent 5bf2fd1f78
commit e4ea2bea01
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,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.left_edge.i, 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}