diff --git a/linguaf/descriptive_statistics.py b/linguaf/descriptive_statistics.py index a9e3613..d4d073a 100644 --- a/linguaf/descriptive_statistics.py +++ b/linguaf/descriptive_statistics.py @@ -8,7 +8,7 @@ import spacy from spacy.lang.de.examples import sentences from spacy.cli.download import download -import pymorphy2 +import pymorphy3 from nltk import word_tokenize, pos_tag import nltk import collections @@ -360,7 +360,7 @@ def get_lexical_items(documents: list, remove_stopwords: bool = False, lang: str __check_lang_param(lang) __check_bool_param(remove_stopwords) - morph = pymorphy2.MorphAnalyzer() + morph = pymorphy3.MorphAnalyzer() lex_items = list() nltk_tags = [ diff --git a/requirements.txt b/requirements.txt index a23d8fc..835d255 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ natasha==1.6.0 nltk==3.8.1 -pymorphy2==0.9.1 +pymorphy3==2.0.2 Pyphen==0.15.0 pytest==8.2.0 setuptools==56.0.0