Skip to content

fury00812/joutai2keitai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

joutai2keitai

Converts Japanese sentences from written language style (常体) to spoken language style (敬体).

reference

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

requirements

  • Python 3
  • mecab-python3

get started

inference

Convert input sentences into spoken language and output

python joutai2keitai.py -i src.txt -o hyp.txt
  • -i, --in_file: input file path
  • -o, --out_file: output file path
  • --nfkc: (optional) adapt Unicode normalization (NFKC)

test

A mode to check if the conversion is correct.

python joutai2keitai.py -t test.txt
  • -t, --test_file: a file in which written and spoken languages are separated by tabs

About

Converts Japanese sentences from written language style (常体) to spoken language style (敬体).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages