pseudo-chinese/README.md

39 lines
875 B
Markdown
Raw Normal View History

2021-08-14 20:36:09 +08:00
# Pseudo Chinese (with MeCab)
2020-04-14 19:14:30 +08:00
Convert Japanese to pseudo-Chinese.
## Description
This tool will automatically generate fake Chinese from Japanese sentences.
2021-08-14 20:43:59 +08:00
Using MeCab to parse and word-tag Japanese sentences instead of COTOHA API.
2021-08-14 20:36:09 +08:00
2020-04-14 19:14:30 +08:00
## Demo
2021-08-14 21:42:26 +08:00
私は本日定時退社します -> 我本日定時退社
2020-04-14 19:15:51 +08:00
2021-08-14 20:36:09 +08:00
私はお酒を飲みたい -> 我御酒飲欲
2020-04-14 19:14:30 +08:00
## Requirement
- Python 3.5.1
2021-08-14 20:36:09 +08:00
- mecab-python3
- unidic-lite
2020-04-14 19:14:30 +08:00
## Usage
```
2021-08-14 20:36:09 +08:00
$ python -u pseudo-chinese.py [sentence]
2020-04-14 19:14:30 +08:00
```
## 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
2020-04-14 19:20:53 +08:00
MIT
2020-04-14 19:14:30 +08:00
## Author
2021-08-14 20:43:02 +08:00
- [Shoichiro Kono](https://github.com/k2font) (orig. creater)
- [Tan Kian-ting](https://github.com/yoxem) (porting to MeCab, and modified it.)