Fix formatting, naming and unicode declaration

This commit is contained in:
Ines Montani 2017-01-12 16:50:53 +01:00
parent 052cdff07d
commit a2526e66d8
1 changed files with 3 additions and 2 deletions

View File

@ -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 )