Wakame
Wakame is a Crystal binding for MeCab(Website/Wikipedia), a morphological analyzer written in C++ often used to analyze Japanese texts. Wakame aims to provide natural interfaces to MeCab in Crystal.
This project is currently work-in-progress. While Wakame's internal direct binding to C has 100% coverage of the original C interfaces, it's currently lacking with higher-level abstractions in Crystal.
Dependencies
- MeCab
- You may also need to install
libmecab-dev
if you are installing from the package manager.
- You may also need to install
- One of the system dictionaries available on the website or a third-party dictionary like mecab-ipadic-NEologd
Installation
-
Add the dependency to your
shard.yml
:dependencies: wakame: github: soya-daizu/wakame
-
Run
shards install
Usage
An example of usage through Wakame's internal direct binding to C is available under the examples/
directory. More guides will be added after Wakame supports higher-level abstractions.
Contributing
- Fork it (https://github.com/soya-daizu/wakame/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- soya_daizu - creator and maintainer