LuceneCarrot2TokenizerFactory (Solr 3.6.2 API)
Keywords: org.apache.solr.handler.clustering.carrot2.LuceneCarrot2TokenizerFactory class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Constructor Summary
`LuceneCarrot2TokenizerFactory()`

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`

Constructor Detail

### LuceneCarrot2TokenizerFactory

    public LuceneCarrot2TokenizerFactory()

Method Detail

### getTokenizer

    public org.carrot2.text.analysis.ITokenizer getTokenizer(org.carrot2.core.LanguageCode language)

  Specified by:
    `getTokenizer` in interface `org.carrot2.text.linguistic.ITokenizerFactory`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD