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:
  • Constructor Details

    • LemmaSample

      public LemmaSample(String[] tokens, String[] tags, String[] lemmas)
      Initializes a LemmaSample instance with the given parameters.
      Parameters:
      tokens - The tokens.
      tags - The postags.
      lemmas - The lemmas for tokens.
    • LemmaSample

      public LemmaSample(List<String> tokens, List<String> tags, List<String> lemmas)
      Initializes a LemmaSample instance with the given parameters.
      Parameters:
      tokens - The tokens.
      tags - The postags.
      lemmas - The lemmas for tokens.
  • Method Details