Class DocumentSample

Namespace
NOpenNLP.Tools.Doccat
Assembly
NOpenNLP.Tools.dll

Class which holds a classified document and its category.

public class DocumentSample
Inheritance
DocumentSample
Inherited Members

Constructors

DocumentSample(string, string[], IDictionary<string, object>?)

public DocumentSample(string category, string[] text, IDictionary<string, object>? extraInformation = null)

Parameters

category string
text string[]
extraInformation IDictionary<string, object>

Properties

Category

public virtual string Category { get; }

Property Value

string

ExtraInformation

public virtual IDictionary<string, object> ExtraInformation { get; }

Property Value

IDictionary<string, object>

Text

public virtual string[] Text { 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.