Package opennlp.tools.lemmatizer
Schnittstelle LemmatizerContextGenerator
- Alle Superschnittstellen:
BeamSearchContextGenerator<String>
- Alle bekannten Implementierungsklassen:
DefaultLemmatizerContextGenerator
Interface for the context generator used for probabilistic
Lemmatizer
.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
getContext
(int i, String[] toks, String[] tags, String[] lemmas) Returns the contexts for lemmatizing of the specified index.Von Schnittstelle geerbte Methoden opennlp.tools.util.BeamSearchContextGenerator
getContext
-
Methodendetails
-
getContext
Returns the contexts for lemmatizing of the specified index.- Parameter:
i
- The index of the token in the specifiedtoks
array for which the context should be constructed.toks
- The tokens of the sentence. ThetoString()
methods of these objects should return the token text.tags
- The POS tags for the specifiedtoks
.lemmas
- The previous decisions made in the tagging of this sequence. Only indices less thani
will be examined.- Gibt zurück:
- An array of predictive contexts on which a model basis its decisions.
-