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

tokens IList<string>

the tokens

tags IList<string>

the postags

lemmas IList<string>

the lemmas

LemmaSample(string[], string[], string[])

Represents one lemma sample.

public LemmaSample(string[] tokens, string[] tags, string[] lemmas)

Parameters

tokens string[]

the token

tags string[]

the postags

lemmas string[]

the lemmas

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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.