Class LemmaSample
- Namespace
- NOpenNLP.Tools.Lemmatizer
- Assembly
- NOpenNLP.Tools.dll
Represents an lemmatized sentence.
public class LemmaSample
- Inheritance
-
LemmaSample
- Inherited Members
Constructors
LemmaSample(IList<string>, IList<string>, IList<string>)
Lemma Sample constructor.
public LemmaSample(IList<string> tokens, IList<string> tags, IList<string> lemmas)
Parameters
LemmaSample(string[], string[], string[])
Represents one lemma sample.
public LemmaSample(string[] tokens, string[] tags, string[] lemmas)
Parameters
Properties
Lemmas
public virtual string[] Lemmas { get; }
Property Value
- string[]
Tags
public virtual string[] Tags { get; }
Property Value
- string[]
Tokens
public virtual string[] Tokens { get; }
Property Value
- string[]
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.