Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
/ k2j Public archive

Converting Japanese sentences from a polite form into a plain one.

License

Notifications You must be signed in to change notification settings

Office-asoT/k2j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k2j

keitai to jotai.

This is a library for converting Japanese sentences from a polite form (Keitai; 敬体) into a plain one (Jotai; 常体).

Installation

pip install git+ssh://git@github.com/Office-asoT/k2j.git
pip install "fugashi[unidic]"   # k2j requires fugashi + unidic.
python -m unidic download

Usage

from k2j import k2j

k2j('今日はいい天気です。')     # => '今日はいい天気である。'

Note

This library is a work in progress, so it may not be able to perform appropriate conversions for all text.

References

  • 林由紀子, 松原茂樹: 自然な読み上げ音声出力のための書き言葉から話し言葉へのテキスト変換, 情報処理学会研究報告音声言語情報処理, Vol.47, pp.49-54 (PDF)

About

Converting Japanese sentences from a polite form into a plain one.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages