Class OpenNLPMentionFixer
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.impl.OpenNLPMentionFixer
-
public class OpenNLPMentionFixer extends java.lang.Object implements java.util.function.Function<Span,Span>
OpenNLP regularly extracts named entities where the last token is a quotation mark/bracket/dash, e.g.:Robert Tapert - Aliens " Jon Voight )
This class fixes those cases, by removing the last token from the span.- Since:
- 5.3
- Version:
- 5.3
- Author:
- Pedro Oliveira
-
-
Constructor Summary
Constructors Constructor Description OpenNLPMentionFixer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Span
apply(Span theSpan)
-