mirror of https://github.com/explosion/spaCy.git
* Upd lemmas test
This commit is contained in:
parent
82bd57c76f
commit
c1ab134159
|
@ -1,13 +1,14 @@
|
||||||
from spacy.en import EN
|
from spacy.en import English
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def EN():
|
||||||
|
return English(pos_tag=True, parse=False)
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def tagged():
|
def tagged(EN):
|
||||||
EN.load()
|
|
||||||
string = u'Bananas in pyjamas are geese.'
|
string = u'Bananas in pyjamas are geese.'
|
||||||
tokens = EN.tokenize(string)
|
tokens = EN(string, pos_tag=True)
|
||||||
EN.set_pos(tokens)
|
|
||||||
return tokens
|
return tokens
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue