RepositoryPythonNLNetherlands
IlyaGusev

IlyaGusev/rnnmorph

Morphological analyzer for Russian and English languages based on neural networks and dictionary-lookup systems.

161stars
23forks
4issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: morphological-analyser

#1 Repository of the month

1
TINIX TRENDING·Topic: pymorphy2

#1 Repository of the month

3
TINIX TRENDING·Topic: morphological-analysis

#3 Repository of the month

rnnmorph

Current version on PyPI Python versions Tests Status Code Climate

Important: please see https://github.com/natasha/slovnet#morphology-1

Morphological analyzer (POS tagger) for Russian and English languages based on neural networks and dictionary-lookup systems (pymorphy2, nltk).

Contacts

Russian language, MorphoRuEval-2017 test dataset, accuracy

DomainFull tagPoS tagF.t. + lemmaSentence f.t.Sentence f.t.l.
Lenta (news)96.31%98.01%92.96%77.93%52.79%
VK (social)95.20%98.04%92.06%74.30%60.56%
JZ (lit.)95.87%98.71%90.45%73.10%43.15%
All95.81%98.26%N/A74.92%N/A

English language, UD EWT test, accuracy

DatasetFull tagPoS tagF.t. + lemmaSentence f.t.Sentence f.t.l.
UD EWT test91.57%94.10%87.02%63.17%50.99%

Speed and memory consumption

Speed: from 200 to 600 words per second using CPU.

Memory consumption: about 500-600 MB for single-sentence predictions

Install

pip install rnnmorph

Usage

Example: Open In Colab

from rnnmorph.predictor import RNNMorphPredictor
predictor = RNNMorphPredictor(language="ru")
forms = predictor.predict(["мама", "мыла", "раму"])
print(forms[0].pos)
>>> NOUN
print(forms[0].tag)
>>> Case=Nom|Gender=Fem|Number=Sing
print(forms[0].normal_form)
>>> мама
print(forms[0].vector)
>>> [0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 1 0 0 1]

Training

Simple model training: Open In Colab

Acknowledgements

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
ku-nlp/jumanpp

Juman++ (a Morphological Analyzer Toolkit)

413
Oct 13, 2026
RepositoryJava
demidko/aot

Russian morphology analyzer for Java | Морфологический словарь русского языка для Java

69
Oct 11, 2026
RepositoryC++
shogo82148/mecab

Unofficial fork of taku910/mecab (Yet another Japanese morphological analyzer)

61
Dec 1, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryPython
666ghj/BettaFish

微舆:人人可用的多Agent舆情分析助手,打破信息茧房,还原舆情原貌,预测未来走向,辅助决策!从0实现,不依赖任何框架。

42.8k
Oct 16, 2026
RepositoryPython
google-research/bert

TensorFlow code and pre-trained models for BERT

40.0k
Jul 23, 2024
RepositoryPython
google/langextract

A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.

39.4k
Nov 27, 2026
RepositoryPython
PDFMathTranslate/PDFMathTranslate

[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

38.8k
Dec 1, 2026
RepositoryPython
hankcs/HanLP

Natural Language Processing for the next decade. Tokenization, Part-of-Speech Tagging, Named Entity Recognition, Syntactic & Semantic Dependency Parsing, Document Classification

36.5k
Nov 7, 2026