mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Remove English [initialize] default block for now to get tests to pass
This commit is contained in:
parent
6f29f68f69
commit
4b6afd3611
|
@ -9,21 +9,9 @@ from .punctuation import TOKENIZER_INFIXES
|
||||||
from .lemmatizer import EnglishLemmatizer
|
from .lemmatizer import EnglishLemmatizer
|
||||||
from ...language import Language
|
from ...language import Language
|
||||||
from ...lookups import Lookups
|
from ...lookups import Lookups
|
||||||
from ...util import load_config_from_str
|
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CONFIG = """
|
|
||||||
[initialize]
|
|
||||||
|
|
||||||
[initialize.lookups]
|
|
||||||
@misc = "spacy.LookupsDataLoader.v1"
|
|
||||||
lang = ${nlp.lang}
|
|
||||||
tables = ["lexeme_norm"]
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class EnglishDefaults(Language.Defaults):
|
class EnglishDefaults(Language.Defaults):
|
||||||
config = load_config_from_str(DEFAULT_CONFIG)
|
|
||||||
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
||||||
infixes = TOKENIZER_INFIXES
|
infixes = TOKENIZER_INFIXES
|
||||||
lex_attr_getters = LEX_ATTRS
|
lex_attr_getters = LEX_ATTRS
|
||||||
|
|
Loading…
Reference in New Issue
Block a user