Class NewlineSentenceDetector

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

The Newline Sentence Detector assumes that sentences are line delimited and recognizes one sentence per non-empty line.

public class NewlineSentenceDetector : ISentenceDetector
Inheritance
NewlineSentenceDetector
Implements
Inherited Members

Methods

SentDetect(string)

Sentence detect a string.

public virtual string[] SentDetect(string s)

Parameters

s string

The string to be sentence detected.

Returns

string[]

The String[] with the individual sentences as the array elements.

SentPosDetect(string)

Sentence detect a string.

public virtual Span[] SentPosDetect(string s)

Parameters

s string

The string to be sentence detected.

Returns

Span[]

The Span[] with the spans (offsets into s) for each detected sentence as the individuals array elements.