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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

russtress-0.1.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page