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.
  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LuceneCarrot2TokenizerFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.