2
0

More than 3 years have passed since last update.

日本語形態素解析「kuromoji」を使う

Posted at

kuromoji Home Page
kuromoji GitHub

Gradle

build.gradle


dependencies {
    compile group: 'com.atilika.kuromoji', name: 'kuromoji-ipadic', version: '0.9.0'
}

「-ipadic」は辞書です。

対応している辞書

  • kuromoji-ipadic
  • kuromoji-ipadic-neologd:future version
  • kuromoji-jumandic
  • kuromoji-naist-jdic
  • kuromoji-unidic
  • kuromoji-unidic-kanaaccent
  • kuromoji-unidic-neologd

Example

String text = "吾輩は猫である。";
Tokenizer tokenizer = new Tokenizer();
List<Token> tokenList = tokenizer.tokenize(text);
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0