Class

org.clulab.sequences

CombinedLexiconNER

Related Doc: package sequences

Permalink

class CombinedLexiconNER extends LexiconNER

Lexicon-based NER, which efficiently recognizes entities from large dictionaries Note: This is a cleaned-up version of the old RuleNER. Create a LexiconNER object using LexiconNER.apply() (not the c'tor, which is private). Use it by calling the find() method on a single sentence. See org.clulab.processors.TextLexiconNER for usage examples.

Annotations
@SerialVersionUID()
Linear Supertypes
LexiconNER, Serializable, Serializable, Tagger[String], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CombinedLexiconNER
  2. LexiconNER
  3. Serializable
  4. Serializable
  5. Tagger
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CombinedLexiconNER(matcher: IntHashTrie, labels: Seq[String], knownCaseInsensitives: Set[String], useLemmas: Boolean, entityValidator: EntityValidator)

    Permalink

    knownCaseInsensitives

    Set of single-token entity names that can be spelled using lower case, according to the KB(s)

    useLemmas

    If true, tokens are matched using lemmas, otherwise using words Author: mihais Created: 5/11/15 Modified: 9/27/17 - Clean up from RuleNER into LexiconNER

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val bLabels: Seq[String]

    Permalink
    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contentfulSpan(sentence: Sentence, start: Int, length: Int): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    LexiconNER
  8. val entityValidator: EntityValidator

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def find(sentence: Sentence): Array[String]

    Permalink

    Matches the lexicons against this sentence

    Matches the lexicons against this sentence

    sentence

    The input sentence

    returns

    An array of BIO notations the store the outcome of the matches

    Definition Classes
    CombinedLexiconNERLexiconNERTagger
  13. def findLongestMatch(sentence: Sentence, tokens: Array[String]): Array[String]

    Permalink

    Finds the longest match across all matchers.

    Finds the longest match across all matchers. This means that the longest match is always chosen, even if coming from a matcher with lower priority Only ties are disambiguated according to the order provided in the constructor

    Attributes
    protected
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getLabels: Seq[String]

    Permalink
    Definition Classes
    CombinedLexiconNERLexiconNER
  16. def getTokens(sentence: Sentence): Array[String]

    Permalink
    Attributes
    protected
    Definition Classes
    LexiconNER
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. val iLabels: Seq[String]

    Permalink
    Attributes
    protected
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val labels: Seq[String]

    Permalink
  21. val matcher: IntHashTrie

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(stringBuilder: StringBuilder): Unit

    Permalink
    Definition Classes
    CombinedLexiconNERLexiconNER
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LexiconNER

Inherited from Serializable

Inherited from Serializable

Inherited from Tagger[String]

Inherited from AnyRef

Inherited from Any

Ungrouped