Class LanguageSample

Namespace
NOpenNLP.Tools.Langdetect
Assembly
NOpenNLP.Tools.dll

Class which holds a classified document and its Language.

public class LanguageSample
Inheritance
LanguageSample
Inherited Members

Constructors

LanguageSample(Language, string)

Class which holds a classified document and its Language.

public LanguageSample(Language language, string context)

Parameters

language Language
context string

Properties

Context

public virtual string Context { get; }

Property Value

string

Language

public virtual Language Language { get; }

Property Value

Language

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.