Class NERMentionExtractor

  • All Implemented Interfaces:
    MentionExtractor, java.util.function.Function<Document,​java.util.List<Span>>

    public class NERMentionExtractor
    extends java.lang.Object
    implements MentionExtractor
    Generates mentions from sequences of NER tags of the same original span in the same sentence. ['person', 'person', '', 'organization', 'person'] = [Span(0,2), Span(3,4), Span(4,5)]
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Constructor Summary

      Constructors 
      Constructor Description
      NERMentionExtractor​(java.lang.String... theTags)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Span> apply​(Document theDocument)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • NERMentionExtractor

        public NERMentionExtractor​(java.lang.String... theTags)
    • Method Detail

      • apply

        public java.util.List<Span> apply​(Document theDocument)
        Specified by:
        apply in interface java.util.function.Function<Document,​java.util.List<Span>>