Registry / other / lucene-analyzers-smartcn

lucene-analyzers-smartcn

JSON →
library8.11.4javamavenunverified

Provides Smart Chinese Analysis for Apache Lucene, enabling tokenization and indexing of Chinese text.

<dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-smartcn</artifactId> <version>8.11.4</version> </dependency>
INSTALL
IMPORT
SIG · LUCENE-ANALYZERS-S
L
lucene-analyzers-smartcn
otherjavav8.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.

SmartChineseAnalyzer
org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer

Tokenizes Chinese text using SmartChineseAnalyzer.

import org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.tokenattributes.CharTermAttribute; import java.io.StringReader; public class Quickstart { public static void main(String[] args) throws Exception { SmartChineseAnalyzer analyzer = new SmartChineseAnalyzer(); TokenStream ts = analyzer.tokenStream("text", new StringReader("我爱编程")); CharTermAttribute termAtt = ts.addAttribute(CharTermAttribute.class); ts.reset(); while (ts.incrementToken()) { System.out.println(termAtt.toString()); } ts.end(); ts.close(); analyzer.close(); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.11.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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