Package opennlp.tools.lemmatizer
Class LemmaSample
java.lang.Object
opennlp.tools.lemmatizer.LemmaSample
- All Implemented Interfaces:
- Serializable,- Sample
Represents a lemmatized sentence.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLemmaSample(String[] tokens, String[] tags, String[] lemmas) Initializes aLemmaSampleinstance with the given parameters.Initializes aLemmaSampleinstance with the given parameters.
- 
Method Summary
- 
Constructor Details- 
LemmaSampleInitializes aLemmaSampleinstance with the given parameters.- Parameters:
- tokens- The tokens.
- tags- The postags.
- lemmas- The lemmas for- tokens.
 
- 
LemmaSampleInitializes aLemmaSampleinstance with the given parameters.- Parameters:
- tokens- The tokens.
- tags- The postags.
- lemmas- The lemmas for- tokens.
 
 
- 
- 
Method Details- 
getTokens- Returns:
- Retrieves the tokens of a LemmaSample.
 
- 
getTags- Returns:
- Retrieves the postags of a LemmaSample.
 
- 
getLemmas- Returns:
- Retrieves the lemmas of a LemmaSample.
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-