public class DictionaryNameFinder extends Object implements TokenNameFinder
| Constructor and Description |
|---|
DictionaryNameFinder(Dictionary dictionary)
Initializes the current instance with the provided dictionary.
|
DictionaryNameFinder(Dictionary dictionary,
String type)
Initialized the current instance with he provided dictionary
and a type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAdaptiveData()
Forgets all adaptive data which was collected during previous
calls to one of the find methods.
|
Span[] |
find(String[] textTokenized)
Generates name tags for the given sequence, typically a sentence,
returning token spans for any identified names.
|
public DictionaryNameFinder(Dictionary dictionary, String type)
dictionary - type - the name type used for the produced spanspublic DictionaryNameFinder(Dictionary dictionary)
dictionary - public Span[] find(String[] textTokenized)
TokenNameFinderfind in interface TokenNameFindertextTokenized - an array of the tokens or words of the sequence, typically a sentence.public void clearAdaptiveData()
TokenNameFinderclearAdaptiveData in interface TokenNameFinderCopyright © 2017 The Apache Software Foundation. All rights reserved.