Class OpenNLPOpsFactory
Supply OpenNLP Named Entity Recognizer.
Cache model file objects. Assumes model files are thread-safe.
Inheritance
System.Object
OpenNLPOpsFactory
Assembly: Lucene.Net.Analysis.OpenNLP.dll
public static class OpenNLPOpsFactory : object
Methods
|
Improve this Doc
View Source
Declaration
public static void ClearModels()
|
Improve this Doc
View Source
Declaration
public static NLPChunkerOp GetChunker(string modelName)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static ChunkerModel GetChunkerModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
ChunkerModel |
|
|
Improve this Doc
View Source
Declaration
public static NLPLemmatizerOp GetLemmatizer(string dictionaryFile, string lemmatizerModelFile)
Parameters
Type |
Name |
Description |
System.String |
dictionaryFile |
|
System.String |
lemmatizerModelFile |
|
Returns
|
Improve this Doc
View Source
Declaration
public static string GetLemmatizerDictionary(string dictionaryFile, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
dictionaryFile |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static LemmatizerModel GetLemmatizerModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
LemmatizerModel |
|
|
Improve this Doc
View Source
Declaration
public static NLPNERTaggerOp GetNERTagger(string modelName)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static TokenNameFinderModel GetNERTaggerModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
TokenNameFinderModel |
|
|
Improve this Doc
View Source
GetPOSTagger(String)
Declaration
public static NLPPOSTaggerOp GetPOSTagger(string modelName)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Returns
|
Improve this Doc
View Source
GetPOSTaggerModel(String, IResourceLoader)
Declaration
public static POSModel GetPOSTaggerModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
POSModel |
|
|
Improve this Doc
View Source
Declaration
public static NLPSentenceDetectorOp GetSentenceDetector(string modelName)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static SentenceModel GetSentenceModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
SentenceModel |
|
|
Improve this Doc
View Source
Declaration
public static NLPTokenizerOp GetTokenizer(string modelName)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Returns
|
Improve this Doc
View Source
Declaration
public static TokenizerModel GetTokenizerModel(string modelName, IResourceLoader loader)
Parameters
Type |
Name |
Description |
System.String |
modelName |
|
Lucene.Net.Analysis.Util.IResourceLoader |
loader |
|
Returns
Type |
Description |
TokenizerModel |
|