Package opennlp.tools.namefind
Schnittstelle NameContextGenerator
- Alle Superschnittstellen:
BeamSearchContextGenerator<String>
- Alle bekannten Implementierungsklassen:
DefaultNameContextGenerator
Interface for generating the context for a
name finder
by
specifying a set of feature generators.- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addFeatureGenerator
(AdaptiveFeatureGenerator generator) Adds a feature generator.void
Informs all the feature generators that the context of the adaptive data (typically a document) is no longer valid and should be cleared.void
updateAdaptiveData
(String[] tokens, String[] outcomes) Informs all the feature generators that the specifiedtokens
have been classified with the corresponds set of specifiedoutcomes
.Von Schnittstelle geerbte Methoden opennlp.tools.util.BeamSearchContextGenerator
getContext
-
Methodendetails
-
addFeatureGenerator
Adds a feature generator.- Parameter:
generator
- Thefeature generator
to add.
-
updateAdaptiveData
Informs all the feature generators that the specifiedtokens
have been classified with the corresponds set of specifiedoutcomes
.- Parameter:
tokens
- The tokens of a sentence or another text unit which has been processed.outcomes
- The outcomes associated with the specifiedtokens
.
-
clearAdaptiveData
void clearAdaptiveData()Informs all the feature generators that the context of the adaptive data (typically a document) is no longer valid and should be cleared.
-