Package that helps you to put lexical stress in russian text
Project description
The tool based on LSTM predicts stress position in each word in russian text depending on the word context. For more details about the tool see «Automated Word Stress Detection in Russian», EMNLP-2017, Copenhagen, Denmark.
Installation
Simple installation with pip
pip install russtress
Usage example
To put stress marks to your text
>>> from russtress import Accent >>> accent = Accent() >>> text = 'Проставь, пожалуйста, ударения' >>> accented_text = accent.put_stress(text) >>> accented_text "Проста'вь, пожа'луйста, ударе'ния"
Datasets
The repo contains samples from UD treebanks annotated with word stress for the Russian, Ukranian and Belorusian languages. For more details about the tool see VarDial paper (coming soon).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
russtress-0.1.4.tar.gz
(432.3 kB
view hashes)
Built Distribution
russtress-0.1.4-py3-none-any.whl
(432.6 kB
view hashes)
Close
Hashes for russtress-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4737596f81872ca62c2074685de3363113529181af6dc1ba3ba3dd14428debe |
|
MD5 | 87ba7ca36f75a2e84f70d70dc29e59c1 |
|
BLAKE2b-256 | a65e1a75335d161209c1bcb1ebeb3cb4e610c6daef6aa082b58ca7e154909279 |