From 918b820472698f0a291c3c7ee9e3d875e8094cad Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 28 Apr 2015 20:46:29 +0200 Subject: [PATCH] * Add testing file for issues such as raised in #57 --- tests/test_parse.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_parse.py diff --git a/tests/test_parse.py b/tests/test_parse.py new file mode 100644 index 000000000..585267831 --- /dev/null +++ b/tests/test_parse.py @@ -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_