Class DictionaryNameFinder
java.lang.Object
opennlp.tools.namefind.DictionaryNameFinder
- All Implemented Interfaces:
opennlp.tools.namefind.TokenNameFinder
This is a
Dictionary based name finder.
It scans text for names inside a provided dictionary.-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryNameFinder(Dictionary dictionary) DictionaryNameFinder(Dictionary dictionary, String type) -
Method Summary
Modifier and TypeMethodDescriptionvoidopennlp.tools.util.Span[]
-
Constructor Details
-
DictionaryNameFinder
- Parameters:
dictionary- TheDictionaryto use. Must not benull.type- the name type used for the produced spans. Must not benull.
-
DictionaryNameFinder
- Parameters:
dictionary- TheDictionaryto use. Must not benull.
-
-
Method Details
-
find
- Specified by:
findin interfaceopennlp.tools.namefind.TokenNameFinder
-
clearAdaptiveData
public void clearAdaptiveData()- Specified by:
clearAdaptiveDatain interfaceopennlp.tools.namefind.TokenNameFinder
-