It is a tool to convert Japanese to pseudo-Chinese. https://qiita.com/shoichiro-k/items/5d28be844f664100387b
Find a file
2021-08-14 20:36:09 +08:00
pseudo-chinese.py mecab porting 2021-08-14 20:36:09 +08:00
README.md mecab porting 2021-08-14 20:36:09 +08:00

Pseudo Chinese (with MeCab)

Convert Japanese to pseudo-Chinese.

Description

This tool will automatically generate fake Chinese from Japanese sentences.

Using MeCab to parse Japanese sentences instead of COTOHA API.

Demo

私は本日定時退社します -> 我本日定時退社為

私はお酒を飲みたい -> 我御酒飲欲

Requirement

  • Python 3.5.1
  • mecab-python3
  • unidic-lite

Usage

$ python -u pseudo-chinese.py [sentence]

Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT

Author

Shoichiro Kono (orig. creater) Tan Kian-ting (porting to MeCab, and modified it.)