GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NyashniyVladya/RusPhonetic: Модуль фонетического разбора русских слов.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
RusPhonetic
RusPhonetic
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

Модуль фонетического разбора русских слов.

Разбор алгоритмический (не по базе данных), что даёт возможность разбирать любые (в том числе и выдуманные) слова, если известно ударение.


Установка:

$ pip install RusPhonetic

Пример использования:

from RusPhonetic import phonetic_module

# Первый аргумент - слово для разбора.
# Второй - номер ударной гласной (начиная с 1). Для слов без гласных (предлоги) - None.
result = phonetic_module.Phonetic("собака", 2)
# Метод 'get_phonetic' возвращает str объект фонетического разбора.
print(result.get_phonetic())  # stdout: сабака


# Пример с выдуманным словом.
result = phonetic_module.Phonetic("гитхабчик", 2)
print(result.get_phonetic())  # stdout: г'итхапч'ик


# Пример с длинным словом.
result = phonetic_module.Phonetic("гидразинокарбонилметилбромфенилдигидробензодиазепин", 21)
print(result.get_phonetic())  # stdout: г'идраз'инакарбан'илм'ит'илбрамф'ин'илд'иг'идраб'инзад'иаз'ип'ин

About

Модуль фонетического разбора русских слов.

boosty.to/nyashniyvladya

Topics

languagephoneticphonetic-algorithmphonetic-algorithmsphonetic-conversionphonetic-transcriptionsphoneticspythonpython3russianrussian-languagerussian-specific

Resources

Readme
GPL-3.0 license
Activity

Stars

9 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.