Registry / utility / lucene-analyzers-kuromoji

lucene-analyzers-kuromoji

JSON →
library8.11.4javamavenunverified

Japanese morphological analyzer (Kuromoji) for Apache Lucene.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-kuromoji</artifactId> <version>8.11.4</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-ANALYZERS-K
L
lucene-analyzers-kuromoji
utilityjavav8.11.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JapaneseAnalyzer
org.apache.lucene.analysis.ja.JapaneseAnalyzer

Tokenize Japanese text using Kuromoji analyzer.

import org.apache.lucene.analysis.ja.JapaneseAnalyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; import java.io.StringReader; public class Example { public static void main(String[] args) throws Exception { JapaneseAnalyzer analyzer = new JapaneseAnalyzer(); TokenStream stream = analyzer.tokenStream("", "日本語のテキスト"); stream.reset(); while (stream.incrementToken()) { System.out.println(stream.getAttribute(CharTermAttribute.class).toString()); } stream.close(); analyzer.close(); } }
Debug
Known issues
breakingVersion 8.11.4 is the last release in the 8.x line; Lucene 9.x has breaking changes in package structure.
fix
Upgrade to lucene-analyzers-common (9.x) and use org.apache.lucene.analysis.ja package.
affects: <9.0.0
Upgrade
Version history
8.11.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
lucene-analyzers-kuromoji — mvn dependency:get lucene-analyzers-kuromoji · libregistry