mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 09:44:36 +03:00
Fix test after updating the French tokenizer stuff
This commit is contained in:
parent
26446aa728
commit
0aaa546435
|
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from ...language import Language
|
from ...language import Language
|
||||||
from ...attrs import LANG
|
from ...attrs import LANG
|
||||||
from ...fr.language_data import TOKENIZER_EXCEPTIONS, STOP_WORDS
|
from ...fr.language_data import get_tokenizer_exceptions, STOP_WORDS
|
||||||
from ...language_data.punctuation import TOKENIZER_INFIXES, ALPHA
|
from ...language_data.punctuation import TOKENIZER_INFIXES, ALPHA
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -20,7 +20,7 @@ def fr_tokenizer_w_infix():
|
||||||
class Defaults(Language.Defaults):
|
class Defaults(Language.Defaults):
|
||||||
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
||||||
lex_attr_getters[LANG] = lambda text: 'fr'
|
lex_attr_getters[LANG] = lambda text: 'fr'
|
||||||
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
tokenizer_exceptions = get_tokenizer_exceptions()
|
||||||
stop_words = STOP_WORDS
|
stop_words = STOP_WORDS
|
||||||
infixes = TOKENIZER_INFIXES + [SPLIT_INFIX]
|
infixes = TOKENIZER_INFIXES + [SPLIT_INFIX]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user