org.apache.solr.handler.clustering.carrot2
Class LuceneLanguageModelFactory
java.lang.Object
org.carrot2.text.linguistic.DefaultLanguageModelFactory
org.apache.solr.handler.clustering.carrot2.LuceneLanguageModelFactory
- All Implemented Interfaces:
- org.carrot2.text.linguistic.ILanguageModelFactory
public class LuceneLanguageModelFactory
- extends org.carrot2.text.linguistic.DefaultLanguageModelFactory
A Solr-specific language model factory for Carrot2. This factory is the only
element in Carrot2 that depends on Lucene APIs, so should the APIs need to
change, the changes can be made in this class.
Fields inherited from class org.carrot2.text.linguistic.DefaultLanguageModelFactory |
mergeResources, reloadResources, resourcePath |
Method Summary |
protected org.carrot2.text.linguistic.IStemmer |
createStemmer(org.carrot2.core.LanguageCode language)
Provide an IStemmer implementation for a given language. |
protected org.carrot2.text.analysis.ITokenizer |
createTokenizer(org.carrot2.core.LanguageCode language)
|
Methods inherited from class org.carrot2.text.linguistic.DefaultLanguageModelFactory |
getLanguageModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneLanguageModelFactory
public LuceneLanguageModelFactory()
createStemmer
protected org.carrot2.text.linguistic.IStemmer createStemmer(org.carrot2.core.LanguageCode language)
- Provide an
IStemmer
implementation for a given language.
- Overrides:
createStemmer
in class org.carrot2.text.linguistic.DefaultLanguageModelFactory
createTokenizer
protected org.carrot2.text.analysis.ITokenizer createTokenizer(org.carrot2.core.LanguageCode language)
- Overrides:
createTokenizer
in class org.carrot2.text.linguistic.DefaultLanguageModelFactory
Copyright © 2011 Apache Software Foundation. All Rights Reserved.