Class NERMentionExtractor
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.impl.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)
-