Package opennlp.tools.namefind
Interface NameContextGenerator
-
- All Superinterfaces:
BeamSearchContextGenerator<String>
- All Known Implementing Classes:
DefaultNameContextGenerator
public interface NameContextGenerator extends BeamSearchContextGenerator<String>
Interface for generating the context for aname finderby specifying a set of feature generators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFeatureGenerator(AdaptiveFeatureGenerator generator)Adds a feature generator.voidclearAdaptiveData()Informs all the feature generators that the context of the adaptive data (typically a document) is no longer valid and should be cleared.voidupdateAdaptiveData(String[] tokens, String[] outcomes)Informs all the feature generators that the specifiedtokenshave been classified with the corresponds set of specifiedoutcomes.-
Methods inherited from interface opennlp.tools.util.BeamSearchContextGenerator
getContext
-
-
-
-
Method Detail
-
addFeatureGenerator
void addFeatureGenerator(AdaptiveFeatureGenerator generator)
Adds a feature generator.- Parameters:
generator- Thefeature generatorto add.
-
updateAdaptiveData
void updateAdaptiveData(String[] tokens, String[] outcomes)
Informs all the feature generators that the specifiedtokenshave been classified with the corresponds set of specifiedoutcomes.- Parameters:
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.
-
-