Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 838 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 838 Bytes

telegram-pymorphy-bot

Telegram Bot for linguistics morphology analysis. Reply with morphemes of sent words and can suggest morphemes for unknown words. Works only with russian language and reply with several variants of analysis if available. Using awesome pymorphy2 module with OpenCorpora corpus.

Development mode

Requires poetry.

Install dependencies

poetry install

Lint

poetry run flake8
poetry run mypy telegram_pymorphy_bot

Run

TOKEN=<Telegram Bot Token> INFO="Add info to bot /info command" poetry run python -m telegram_pymorphy_bot

Docker

Build

docker build --tag=pymorphy_bot .

Run

docker run -d -e TOKEN=<Telegram Bot Token> -e INFO="Add info to bot /info command" pymorphy_bot