mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Add test for Issue 24
This commit is contained in:
parent
0492cee8b4
commit
99f0a315f9
|
@ -1,3 +1,5 @@
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from spacy.en import English
|
from spacy.en import English
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@ -25,3 +27,8 @@ def test_lemmas(lemmas, tagged):
|
||||||
assert lemmas[3] == 'be'
|
assert lemmas[3] == 'be'
|
||||||
if tagged[2].tag == tagged[4].tag:
|
if tagged[2].tag == tagged[4].tag:
|
||||||
assert lemmas[4] == 'goose'
|
assert lemmas[4] == 'goose'
|
||||||
|
|
||||||
|
|
||||||
|
def test_didnt(EN):
|
||||||
|
tokens = EN(u"I didn't do it")
|
||||||
|
assert tokens[1].lemma_ != u""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user