Skip to content

Commit

Permalink
Merge pull request #20 from ThHuberSG/pymorph3
Browse files Browse the repository at this point in the history
Updates pymorphy2 to pymorphy3
  • Loading branch information
Perevalov authored Oct 30, 2024
2 parents 24d91f8 + e2c6441 commit b1bd77d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions linguaf/descriptive_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b1bd77d

Please sign in to comment.