org.apache.solr.handler.clustering.carrot2
Class LuceneCarrot2TokenizerFactory
java.lang.Object
org.apache.solr.handler.clustering.carrot2.LuceneCarrot2TokenizerFactory
- All Implemented Interfaces:
- org.carrot2.text.linguistic.ITokenizerFactory
public class LuceneCarrot2TokenizerFactory
- extends Object
- implements org.carrot2.text.linguistic.ITokenizerFactory
An implementation of Carrot2's ITokenizerFactory
based on Lucene's
Smart Chinese tokenizer. If Smart Chinese tokenizer is not available in
classpath at runtime, the default Carrot2's tokenizer is used. Should the
Lucene APIs need to change, the changes can be made in this class.
Method Summary |
org.carrot2.text.analysis.ITokenizer |
getTokenizer(org.carrot2.core.LanguageCode language)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneCarrot2TokenizerFactory
public LuceneCarrot2TokenizerFactory()
getTokenizer
public org.carrot2.text.analysis.ITokenizer getTokenizer(org.carrot2.core.LanguageCode language)
- Specified by:
getTokenizer
in interface org.carrot2.text.linguistic.ITokenizerFactory
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.