public interface NameFinder
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Forget all adaptive data which was collected during previous calls to one
of the find methods.
|
List<Name> |
getNames(String[] tokens)
Generates
Name objects for the given sequence, typically a
sentence. |
List<Name> |
getNamesFromSpans(opennlp.tools.util.Span[] neSpans,
String[] tokens)
Create a list of
Name objects from spans and tokens. |
opennlp.tools.util.Span[] |
nercToSpans(String[] tokens)
This method receives as input an array of tokenized text and returns the
Spans of the detected and classified Named Entities. |
List<Name> getNames(String[] tokens)
Name objects for the given sequence, typically a
sentence.tokens - an array of the tokens or wordsopennlp.tools.util.Span[] nercToSpans(String[] tokens)
Spans of the detected and classified Named Entities.tokens - an array of tokenized textList<Name> getNamesFromSpans(opennlp.tools.util.Span[] neSpans, String[] tokens)
Name objects from spans and tokens.neSpans - an array of Name Spanstokens - an array of tokens, usually a sentencevoid clearAdaptiveData()
Copyright © 2016 IXA pipes. All rights reserved.