Class SentenceSample

Namespace
NOpenNLP.Tools.Sentdetect
Assembly
NOpenNLP.Tools.dll

A SentenceSample contains a document with begin indexes of the individual sentences.

public class SentenceSample
Inheritance
SentenceSample
Inherited Members

Constructors

SentenceSample(IDetokenizer, string[][])

public SentenceSample(IDetokenizer detokenizer, string[][] sentences)

Parameters

detokenizer IDetokenizer
sentences string[][]

SentenceSample(string, params Span[])

Initializes the current instance.

public SentenceSample(string document, params Span[] sentences)

Parameters

document string
sentences Span[]

Properties

Document

Retrieves the document.

public virtual string Document { 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.

GetSentences()

Retrieves the sentences, that is the begin indexes of the sentences in the document.

public virtual Span[] GetSentences()

Returns

Span[]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.