mecab_dartを使ってみました。
使い方は大変簡単で、このコミット分だけで使えました。 https://github.com/ken1flan/mecab_dart_sample/commit/3e38a4445a5c818445ff9a680fd69180a3e18fac
実際に動かしてデバッガで見てみると、↓のようになっていて…。 テキストがトークンに分割されて、トークンの属性もfeaturesに保存されていました。
MeCabとIPA辞書は.GPL、LGPL、またはBSDライセンスに従って…とあるので、商用利用も大丈夫そう。 https://taku910.github.io/mecab/
注意点
- mecab_dartはflutterのプラグインです。
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.