Class OpenNLPLemmatizerFilterFactory
Factory for OpenNLPLemmatizerFilter.
<fieldType name="text_opennlp_lemma" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory"
sentenceModel="filename"
tokenizerModel="filename"/>
/>
<filter class="solr.OpenNLPLemmatizerFilterFactory"
dictionary="filename"
lemmatizerModel="filename"/>
</analyzer>
</fieldType>
Implements
IResourceLoaderAware
Inherited Members
TokenFilterFactory.AvailableTokenFilters
TokenFilterFactory.ReloadTokenFilters()
AbstractAnalysisFactory.LUCENE_MATCH_VERSION_PARAM
AbstractAnalysisFactory.m_luceneMatchVersion
AbstractAnalysisFactory.OriginalArgs
AbstractAnalysisFactory.AssureMatchVersion()
AbstractAnalysisFactory.LuceneMatchVersion
AbstractAnalysisFactory.GetClassArg()
AbstractAnalysisFactory.IsExplicitLuceneMatchVersion
Namespace: Lucene.Net.Analysis.OpenNlp
Assembly: Lucene.Net.Analysis.OpenNLP.dll
Syntax
public class OpenNLPLemmatizerFilterFactory : TokenFilterFactory, IResourceLoaderAware
Constructors
OpenNLPLemmatizerFilterFactory(IDictionary<string, string>)
Factory for OpenNLPLemmatizerFilter.
<fieldType name="text_opennlp_lemma" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory"
sentenceModel="filename"
tokenizerModel="filename"/>
/>
<filter class="solr.OpenNLPLemmatizerFilterFactory"
dictionary="filename"
lemmatizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public OpenNLPLemmatizerFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
Fields
DICTIONARY
Factory for OpenNLPLemmatizerFilter.
<fieldType name="text_opennlp_lemma" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory"
sentenceModel="filename"
tokenizerModel="filename"/>
/>
<filter class="solr.OpenNLPLemmatizerFilterFactory"
dictionary="filename"
lemmatizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public const string DICTIONARY = "dictionary"
Field Value
Type | Description |
---|---|
string |
LEMMATIZER_MODEL
Factory for OpenNLPLemmatizerFilter.
<fieldType name="text_opennlp_lemma" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory"
sentenceModel="filename"
tokenizerModel="filename"/>
/>
<filter class="solr.OpenNLPLemmatizerFilterFactory"
dictionary="filename"
lemmatizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public const string LEMMATIZER_MODEL = "lemmatizerModel"
Field Value
Type | Description |
---|---|
string |
Methods
Create(TokenStream)
Transform the specified input Lucene.Net.Analysis.TokenStream
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input |
Returns
Type | Description |
---|---|
TokenStream |
Overrides
Lucene.Net.Analysis.Util.TokenFilterFactory.Create(Lucene.Net.Analysis.TokenStream)
Inform(IResourceLoader)
Initializes this component with the provided Lucene.Net.Analysis.Util.IResourceLoader (used for loading types, embedded resources, files, etc).
Declaration
public virtual void Inform(IResourceLoader loader)
Parameters
Type | Name | Description |
---|---|---|
IResourceLoader | loader |
Implements
Lucene.Net.Analysis.Util.IResourceLoaderAware