Class/Object

org.clulab.wm.eidos.extraction

GazetteerEntityFinder

Related Docs: object GazetteerEntityFinder | package extraction

Permalink

class GazetteerEntityFinder extends Finder

The GazetteerEntityFinder finds mentions of gazetteer elements. The matching uses a processors LexiconNER, so the lexicons are provided as paths to the csv files (stored in resources) and matching is based on exact string match. The found mentions are odin TextBoundMentions, where the Mention label is the same as the base name of the gazetteer that matched it.

Linear Supertypes
Finder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GazetteerEntityFinder
  2. Finder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GazetteerEntityFinder(lexicons: Seq[String], expander: Option[Expander])

    Permalink

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. def annotateSentence(s: Sentence): Unit

    Permalink

    Annotate the processors Sentence with found matches from the gazetteers in place.

    Annotate the processors Sentence with found matches from the gazetteers in place. The annotations will be placed in the entities field, using BIO notation (i.e., B-X, I-X, O, ...)

    s

    Sentence to be annotated

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def find(doc: Document, initialState: State = new State()): Seq[Mention]

    Permalink

    Find mentions corresponding to gazetteers (using string matching).

    Find mentions corresponding to gazetteers (using string matching). The label of the mention will match the name of the gazetteer file which matches it. The matching is done using the LexiconNER class in Processors.

    doc

    Processors Document, already annotated. The named entities field does not need to be populated.

    returns

    the mentions corresponding to the gazetteer items

    Definition Classes
    GazetteerEntityFinderFinder
  11. val gazetteers: LexiconNER

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

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

Inherited from Finder

Inherited from AnyRef

Inherited from Any

Ungrouped