Assistant which helps tag links. Supports russian and english languages.
- Telegram-bot recieves message
- Extract tags from text and links
- Return sorted and uniq tag as anwer by bot
Code tested and work on Python 3.9 with requirements in venv. Also yon need to download NLTK packages.
nltk.download('averaged_perceptron_tagger')
- for english words tokenizenltk.download('averaged_perceptron_tagger_ru')
- for russian words tokenizenltk.download('crubadan')
- for languade detectionnltk.download('punkt')
- for word tokenizenltk.download('omw-1.4')
- for word lemma (multilang)nltk.download('wordnet')
- basic lemma