* Add test for Issue 24

This commit is contained in:
Matthew Honnibal 2015-02-08 18:30:46 -05:00
parent 0492cee8b4
commit 99f0a315f9
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,5 @@
from __future__ import unicode_literals
from spacy.en import English
import pytest
@ -25,3 +27,8 @@ def test_lemmas(lemmas, tagged):
assert lemmas[3] == 'be'
if tagged[2].tag == tagged[4].tag:
assert lemmas[4] == 'goose'
def test_didnt(EN):
tokens = EN(u"I didn't do it")
assert tokens[1].lemma_ != u""