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)
TokenNameFinder
find
in interface TokenNameFinder
textTokenized
- an array of the tokens or words of the sequence, typically a sentence.public void clearAdaptiveData()
TokenNameFinder
clearAdaptiveData
in interface TokenNameFinder
Copyright © 2018 The Apache Software Foundation. All rights reserved.