Skip to main content

honorific

Данный пакет позволяет изменять форму обращения к человеку. С неформальной ("ты") на более уважительную ("Вы"), и наоборот.

Установка

Установка пакета

python -m pip install honorific

При первом запуске скачается пакет ru_core_news_lg для spacy, но можно установить его заранее

python -m spacy download ru_core_news_lg

Пример

>>> honorific.honor("Как твои дела?")
'Как ваши дела?'

>>> honorific.honor("Так ты скажешь, откуда ты?")
'Так вы скажете, откуда вы?'

Описание

В данный момент обрабатываются

  • глаголы
  • местоимения
  • краткие прилагательные и причастия(+модальные глаголы).

TODO

  • обработка глаголов в прошедшем времени в СПП
  • обработка сложных конструкций(пропуск пунктуации и т.д)
  • обработка устойчивых выражений("ух ты" и т.д.)
  • обработка возвратно-притяжательных местоимений

Метрики

  • Gold Standart - соответствие проф. разметке = 100%
  • Adequacy - соответствие нормам русского языка = 94%
  • Accuracy - правильность измененных словоформ = 100%

Metadata

Release files for honorific 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for honorific 0.1.5
File Size Uploaded
honorific-0.1.5.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for honorific 0.1.5
File Interpreter ABI Platform
honorific-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / honorific-0.1.5.tar.gz

Download URL honorific-0.1.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2e6975ab63f700cb0cf79b4edb1cacdc95db01eed0c991371a487b881dd6198
BLAKE2b-256 checksum
How to use checksums
2523c4dbd5f36dddb07fdcbdf9d4724bfaf1c637a22361ecd0357f15b9d32d38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-58-generic

Release files / honorific-0.1.5-py3-none-any.whl

Download URL honorific-0.1.5-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82853897fd2b31c87ca345847050a67917d71d9dc07f2d98bf023765c879d1a6
BLAKE2b-256 checksum
How to use checksums
f876492f8d8741d56e7ba0c4e38e7e5e63d1378e4f4818a9816a33cef5bfb862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.9 Linux/5.15.0-58-generic

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page