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 "Проста'вь, пожа'луйста, ударе'ния"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for russtress-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a2edeb4cdfa1977c2596adf2c7a5f83775baf544cbcd0a98837d1883cc3b5a |
|
MD5 | 98fec8e433633640babc8b5501beac7a |
|
BLAKE2b-256 | 04a84b2cec38787537617102dd9fdc06c47c29a33542daaa42c94bf69084608b |