diff --git a/spacy/lang/pl/__init__.py b/spacy/lang/pl/__init__.py index 80011f9d8..c678d25e5 100644 --- a/spacy/lang/pl/__init__.py +++ b/spacy/lang/pl/__init__.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS +from .tag_map import TAG_MAP from .stop_words import STOP_WORDS from ..tokenizer_exceptions import BASE_EXCEPTIONS @@ -17,6 +18,7 @@ class PolishDefaults(Language.Defaults): lex_attr_getters[NORM] = add_lookups(Language.Defaults.lex_attr_getters[NORM], BASE_NORMS) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS + tag_map = TAG_MAP class Polish(Language): diff --git a/spacy/lang/pl/tag_map.py b/spacy/lang/pl/tag_map.py index b5914d05f..3f73be0e9 100644 --- a/spacy/lang/pl/tag_map.py +++ b/spacy/lang/pl/tag_map.py @@ -1,6 +1,6 @@ # coding: utf8 from __future__ import unicode_literals -from ...symbols import POS, ADJ, CCONJ, SCONJ, NUM, ADV, ADP, X, VERB, NOUN +from ...symbols import POS, ADJ, ADP, ADV, AUX, CCONJ, DET, INTJ, NOUN, NUM, PART, PRON, PROPN, PUNCT, SCONJ, VERB, X TAG_MAP = { "adja": {POS: ADJ},