public class DictionaryNameFinder extends java.lang.Object implements TokenNameFinder
Constructor and Description |
---|
DictionaryNameFinder(Dictionary dictionary)
Initializes the current instance with the provided dictionary.
|
DictionaryNameFinder(Dictionary dictionary,
java.lang.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(java.lang.String[] textTokenized)
Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
|
public DictionaryNameFinder(Dictionary dictionary, java.lang.String type)
dictionary
- type
- the name type used for the produced spanspublic DictionaryNameFinder(Dictionary dictionary)
dictionary
- public Span[] find(java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved