Class OpenNLPTokenizerFactory
Factory for OpenNLPTokenizer.
<fieldType name="text_opennlp" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>
</analyzer>
</fieldType>
Implements
IResourceLoaderAware
Inherited Members
TokenizerFactory.AvailableTokenizers
TokenizerFactory.ReloadTokenizers()
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 OpenNLPTokenizerFactory : TokenizerFactory, IResourceLoaderAware
Constructors
OpenNLPTokenizerFactory(IDictionary<string, string>)
Factory for OpenNLPTokenizer.
<fieldType name="text_opennlp" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public OpenNLPTokenizerFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
Fields
SENTENCE_MODEL
Factory for OpenNLPTokenizer.
<fieldType name="text_opennlp" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public const string SENTENCE_MODEL = "sentenceModel"
Field Value
Type | Description |
---|---|
string |
TOKENIZER_MODEL
Factory for OpenNLPTokenizer.
<fieldType name="text_opennlp" class="solr.TextField" positionIncrementGap="100"
<analyzer>
<tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>
</analyzer>
</fieldType>
Declaration
public const string TOKENIZER_MODEL = "tokenizerModel"
Field Value
Type | Description |
---|---|
string |
Methods
Create(AttributeFactory, TextReader)
Creates a Lucene.Net.Analysis.TokenStream of the specified input using the given Lucene.Net.Util.AttributeSource.AttributeFactory
Declaration
public override Tokenizer Create(AttributeSource.AttributeFactory factory, TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
AttributeSource.AttributeFactory | factory | |
TextReader | reader |
Returns
Type | Description |
---|---|
Tokenizer |
Overrides
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