Skip to content

python package russtress accentuates russian text

Notifications You must be signed in to change notification settings

MashaPo/russtress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

python package russtress accentuates russian text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages