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 Summary
ConstructorDescriptionLemmaSample
(String[] tokens, String[] tags, String[] lemmas) Initializes aLemmaSample
instance with the given parameters.Initializes aLemmaSample
instance with the given parameters. -
Method Summary
-
Constructor Details
-
LemmaSample
Initializes aLemmaSample
instance with the given parameters.- Parameters:
tokens
- The tokens.tags
- The postags.lemmas
- The lemmas fortokens
.
-
LemmaSample
Initializes aLemmaSample
instance with the given parameters.- Parameters:
tokens
- The tokens.tags
- The postags.lemmas
- The lemmas fortokens
.
-
-
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
-
hashCode
public int hashCode() -
equals
-