|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.namefind.DictionaryNameFinder
public class DictionaryNameFinder
This is a dictionary based name finder, it scans text for names inside a dictionary.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DictionaryNameFinder(Dictionary dictionary, String type)
dictionary
- type
- the name type used for the produced spanspublic DictionaryNameFinder(Dictionary dictionary)
dictionary
- Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |