mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +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],
|
[-2, conj],
|
||||||
[-5, dobj]
|
[-5, dobj]
|
||||||
], dtype='int32'))
|
], dtype='int32'))
|
||||||
|
for chunk in tokens.noun_chunks:
|
||||||
|
print(chunk.text)
|
||||||
word_occurred = {}
|
word_occurred = {}
|
||||||
for chunk in tokens.noun_chunks:
|
for chunk in tokens.noun_chunks:
|
||||||
for word in chunk:
|
for word in chunk:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user