https://github.com/iory/japanese2phoneme
https://github.com/iory/japanese2phoneme
japanese nlp python
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/iory/japanese2phoneme
- Owner: iory
- License: mit
- Created: 2021-02-09T07:27:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-24T07:12:41.000Z (over 4 years ago)
- Last Synced: 2025-06-17T01:40:39.785Z (about 1 year ago)
- Topics: japanese, nlp, python
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# japanese2phoneme
A python library to convert Japanese to phoneme.
## Install
```
pip install japanese2phoneme
```
## Quick Start
```
>>> import japanese2phoneme
>>> japanese2phoneme.get_chunked_kana('林檎')
(['林檎'], ['リンゴ'], ['r i ɴ g o'])
>>> japanese2phoneme.get_chunked_kana('リンゴ')
(['リンゴ'], ['リンゴ'], ['r i ɴ g o'])
>>> japanese2phoneme.get_chunked_kana('これは牡蠣です')
(['これは牡蠣です'], ['コレハカキデス'], ['k o r e h a k a k i d e s u'])
>>> japanese2phoneme.get_chunked_kana('これは柿です')
(['これは柿です'], ['コレハカキデス'], ['k o r e h a k a k i d e s u'])
```