mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 00:32:40 +03:00
* Add testing file for issues such as raised in #57
This commit is contained in:
parent
b3fd48c97b
commit
918b820472
11
tests/test_parse.py
Normal file
11
tests/test_parse.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
from spacy.en import English
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
NLP = English()
|
||||||
|
|
||||||
|
|
||||||
|
def test_root():
|
||||||
|
tokens = NLP(u"i don't have other assistance")
|
||||||
|
for t in tokens:
|
||||||
|
assert t.dep != 0, t.orth_
|
Loading…
Reference in New Issue
Block a user