Skip to main content

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
russtress-0.1.3-py3-none-any.whl (432.7 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page