mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +03:00
* Add test for Issue #203: nested noun chunks.
This commit is contained in:
parent
4e2253170c
commit
714cbc03d5
|
@ -22,6 +22,8 @@ def test_not_nested():
|
|||
[-2, conj],
|
||||
[-5, dobj]
|
||||
], dtype='int32'))
|
||||
for chunk in tokens.noun_chunks:
|
||||
print(chunk.text)
|
||||
word_occurred = {}
|
||||
for chunk in tokens.noun_chunks:
|
||||
for word in chunk:
|
||||
|
|
Loading…
Reference in New Issue
Block a user