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