https://github.com/ajatt-tools/mecab_controller
๐ฃ Mecab wrapper to generate furigana readings.
https://github.com/ajatt-tools/mecab_controller
ajatt furigana japanese mecab python
Last synced: 6 months ago
JSON representation
๐ฃ Mecab wrapper to generate furigana readings.
- Host: GitHub
- URL: https://github.com/ajatt-tools/mecab_controller
- Owner: Ajatt-Tools
- License: agpl-3.0
- Created: 2021-08-06T05:17:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-31T23:27:47.000Z (7 months ago)
- Last Synced: 2024-11-01T00:22:38.722Z (7 months ago)
- Topics: ajatt, furigana, japanese, mecab, python
- Language: Python
- Homepage: https://tatsumoto.neocities.org/blog/join-our-community.html
- Size: 20.1 MB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/LICENSE
Awesome Lists containing this project
README
# Mecab controller
Mecab controller is a simple wrapper around
[mecab](https://github.com/taku910/mecab) ([AUR](https://aur.archlinux.org/packages/mecab-git)).
It was created primarily to be used in
[AJT Japanese](https://ankiweb.net/shared/info/1344485230),
an [Anki](https://wiki.archlinux.org/title/Anki) add-on
that generates furigana for Japanese text.
Originally based on code from
[Japanese support](https://github.com/ankitects/anki-addons/tree/main/code/japanese).## Usage with AJT Japanese
This repository is already included with AJT Japanese.
You don't need to do anything extra.## Standalone usage
```
>>> import mecab_controller
>>> mecab = mecab_controller.MecabController()
>>> print(mecab.reading('ๆจๆฅใใ็ผใใ้ฃในใพใใ'))
ๆจๆฅ[ใใฎใ]ใใ ็ผ[ใ]ใใ ้ฃ[ใ]ในใพใใ
``````
python -m mecab_controller ๆจๆฅใใ็ผใใ้ฃในใพใใ
ๆจๆฅ[ใใฎใ]ใใ ็ผ[ใ]ใใ ้ฃ[ใ]ในใพใใ
```