mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Fix formatting, naming and unicode declaration
This commit is contained in:
parent
052cdff07d
commit
a2526e66d8
|
@ -1,5 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# coding: utf-8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
import pickle
|
import pickle
|
||||||
|
@ -94,7 +95,7 @@ def test_pickle_lemmatizer(lemmatizer):
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.models
|
@pytest.mark.models
|
||||||
def test_lemma_assignment(EN):
|
def test_tagger_lemma_assignment(EN):
|
||||||
tokens = u'Bananas in pyjamas are geese .'.split(' ')
|
tokens = u'Bananas in pyjamas are geese .'.split(' ')
|
||||||
doc = EN.tokenizer.tokens_from_list(tokens)
|
doc = EN.tokenizer.tokens_from_list(tokens)
|
||||||
assert all( t.lemma_ == u'' for t in doc )
|
assert all( t.lemma_ == u'' for t in doc )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user