mirror of https://github.com/explosion/spaCy.git
Update model-related dependencies (#6725)
* Update pymorphy2 error messages for Russian and Ukrainian * Add pymorphy2 to pex * Update spacy-pkuseg version for pex
This commit is contained in:
parent
31a92b28ae
commit
54e8e3c208
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
ifndef SPACY_EXTRAS
|
ifndef SPACY_EXTRAS
|
||||||
override SPACY_EXTRAS = spacy-lookups-data==1.0.0rc0 jieba spacy-pkuseg==0.0.26 sudachipy sudachidict_core
|
override SPACY_EXTRAS = spacy-lookups-data==1.0.0rc0 jieba spacy-pkuseg==0.0.28 sudachipy sudachidict_core pymorphy2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef PYVER
|
ifndef PYVER
|
||||||
|
|
|
@ -30,9 +30,7 @@ class RussianLemmatizer(Lemmatizer):
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"The Russian lemmatizer requires the pymorphy2 library: "
|
"The Russian lemmatizer requires the pymorphy2 library: "
|
||||||
'try to fix it with "pip install pymorphy2==0.8" '
|
'try to fix it with "pip install pymorphy2"'
|
||||||
'or "pip install git+https://github.com/kmike/pymorphy2.git pymorphy2-dicts-uk"'
|
|
||||||
"if you need Ukrainian too"
|
|
||||||
) from None
|
) from None
|
||||||
if RussianLemmatizer._morph is None:
|
if RussianLemmatizer._morph is None:
|
||||||
RussianLemmatizer._morph = MorphAnalyzer()
|
RussianLemmatizer._morph = MorphAnalyzer()
|
||||||
|
|
|
@ -22,8 +22,8 @@ class UkrainianLemmatizer(RussianLemmatizer):
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"The Ukrainian lemmatizer requires the pymorphy2 library and "
|
"The Ukrainian lemmatizer requires the pymorphy2 library and "
|
||||||
'dictionaries: try to fix it with "pip uninstall pymorphy2" and'
|
"dictionaries: try to fix it with "
|
||||||
'"pip install git+https://github.com/kmike/pymorphy2.git pymorphy2-dicts-uk"'
|
'"pip install pymorphy2 pymorphy2-dicts-uk"'
|
||||||
) from None
|
) from None
|
||||||
if UkrainianLemmatizer._morph is None:
|
if UkrainianLemmatizer._morph is None:
|
||||||
UkrainianLemmatizer._morph = MorphAnalyzer(lang="uk")
|
UkrainianLemmatizer._morph = MorphAnalyzer(lang="uk")
|
||||||
|
|
Loading…
Reference in New Issue