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
ConstructorsConstructorDescriptionLemmaSample(String[] tokens, String[] tags, String[] lemmas) Initializes aLemmaSampleinstance with the given parameters.Initializes aLemmaSampleinstance with the given parameters. -
Method Summary
-
Constructor Details
-
LemmaSample
Initializes aLemmaSampleinstance with the given parameters.- Parameters:
tokens- The tokens.tags- The postags.lemmas- The lemmas fortokens.
-
LemmaSample
Initializes aLemmaSampleinstance 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
-