Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class NLPNERTaggerOp

    Supply OpenNLP Named Entity Resolution tool Requires binary models from OpenNLP project on SourceForge.

    Usage: from the OpenNLP documentation:

    "The NameFinderME class is not thread safe, it must only be called from one thread. To use multiple threads multiple NameFinderME instances sharing the same model instance can be created. The input text should be segmented into documents, sentences and tokens. To perform entity detection an application calls the find method for every sentence in the document. After every document clearAdaptiveData must be called to clear the adaptive data in the feature generators. Not calling clearAdaptiveData can lead to a sharp drop in the detection rate after a few documents."
    Inheritance
    object
    NLPNERTaggerOp
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.OpenNlp.Tools
    Assembly: Lucene.Net.Analysis.OpenNLP.dll
    Syntax
    public class NLPNERTaggerOp

    Constructors

    NLPNERTaggerOp(TokenNameFinderModel)

    Supply OpenNLP Named Entity Resolution tool Requires binary models from OpenNLP project on SourceForge.

    Usage: from the OpenNLP documentation:

    "The NameFinderME class is not thread safe, it must only be called from one thread. To use multiple threads multiple NameFinderME instances sharing the same model instance can be created. The input text should be segmented into documents, sentences and tokens. To perform entity detection an application calls the find method for every sentence in the document. After every document clearAdaptiveData must be called to clear the adaptive data in the feature generators. Not calling clearAdaptiveData can lead to a sharp drop in the detection rate after a few documents."
    Declaration
    public NLPNERTaggerOp(TokenNameFinderModel model)
    Parameters
    Type Name Description
    TokenNameFinderModel model

    Methods

    GetNames(string[])

    Supply OpenNLP Named Entity Resolution tool Requires binary models from OpenNLP project on SourceForge.

    Usage: from the OpenNLP documentation:

    "The NameFinderME class is not thread safe, it must only be called from one thread. To use multiple threads multiple NameFinderME instances sharing the same model instance can be created. The input text should be segmented into documents, sentences and tokens. To perform entity detection an application calls the find method for every sentence in the document. After every document clearAdaptiveData must be called to clear the adaptive data in the feature generators. Not calling clearAdaptiveData can lead to a sharp drop in the detection rate after a few documents."
    Declaration
    public virtual Span[] GetNames(string[] words)
    Parameters
    Type Name Description
    string[] words
    Returns
    Type Description
    Span[]

    Reset()

    Supply OpenNLP Named Entity Resolution tool Requires binary models from OpenNLP project on SourceForge.

    Usage: from the OpenNLP documentation:

    "The NameFinderME class is not thread safe, it must only be called from one thread. To use multiple threads multiple NameFinderME instances sharing the same model instance can be created. The input text should be segmented into documents, sentences and tokens. To perform entity detection an application calls the find method for every sentence in the document. After every document clearAdaptiveData must be called to clear the adaptive data in the feature generators. Not calling clearAdaptiveData can lead to a sharp drop in the detection rate after a few documents."
    Declaration
    public virtual void Reset()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.