public class NumericNameFinder extends Object implements NameFinder
| Constructor and Description |
|---|
NumericNameFinder(BufferedReader breader,
NameFactory aNameFactory) |
| 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. |
public NumericNameFinder(BufferedReader breader, NameFactory aNameFactory)
public List<Name> getNames(String[] tokens)
NameFinderName objects for the given sequence, typically a
sentence.getNames in interface NameFindertokens - an array of the tokens or wordspublic opennlp.tools.util.Span[] nercToSpans(String[] tokens)
NameFinderSpans of the detected and classified Named Entities.nercToSpans in interface NameFindertokens - an array of tokenized textpublic List<Name> getNamesFromSpans(opennlp.tools.util.Span[] neSpans, String[] tokens)
NameFinderName objects from spans and tokens.getNamesFromSpans in interface NameFinderneSpans - an array of Name Spanstokens - an array of tokens, usually a sentencepublic void clearAdaptiveData()
NameFinderclearAdaptiveData in interface NameFinderCopyright © 2015 IXA pipes. All rights reserved.