Package opennlp.tools.lemmatizer
Class LemmaSample
- java.lang.Object
-
- opennlp.tools.lemmatizer.LemmaSample
-
- All Implemented Interfaces:
Serializable,Sample
public class LemmaSample extends Object implements Sample
Represents a lemmatized sentence.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LemmaSample(String[] tokens, String[] tags, String[] lemmas)Initializes aLemmaSampleinstance with the given parameters.LemmaSample(List<String> tokens, List<String> tags, List<String> lemmas)Initializes aLemmaSampleinstance with the given parameters.
-
-
-
Constructor Detail
-
LemmaSample
public LemmaSample(String[] tokens, String[] tags, String[] lemmas)
Initializes aLemmaSampleinstance with the given parameters.- Parameters:
tokens- The tokens.tags- The postags.lemmas- The lemmas fortokens.
-
-
Method Detail
-
getTokens
public String[] getTokens()
- Returns:
- Retrieves the tokens of a
LemmaSample.
-
getTags
public String[] getTags()
- Returns:
- Retrieves the postags of a
LemmaSample.
-
getLemmas
public String[] getLemmas()
- Returns:
- Retrieves the lemmas of a
LemmaSample.
-
-