Interface IEndOfSentenceScanner

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

Scans Strings, StringBuffers, and char[] arrays for the offsets of sentence ending characters.

Implementations of this interface can use regular expressions, hand-coded DFAs, and other scanning techniques to locate end of sentence offsets.

public interface IEndOfSentenceScanner

Properties

EOSCharacters

Returns a set of character which can indicate the end of a sentence.

ISet<char> EOSCharacters { get; }

Property Value

ISet<char>

a set of character which can indicate the end of a sentence.

EndOfSentenceCharacters

Returns an array of character which can indicate the end of a sentence.

char[] EndOfSentenceCharacters { get; }

Property Value

char[]

an array of character which can indicate the end of a sentence.

Methods

GetPositions(char[])

The receiver scans `cbuf' for sentence ending characters and returns their offsets.

IList<int> GetPositions(char[] cbuf)

Parameters

cbuf char[]

a char array value

Returns

IList<int>

a List<T> of ints.

GetPositions(string)

The receiver scans the specified string for sentence ending characters and returns their offsets.

IList<int> GetPositions(string s)

Parameters

s string

a string value

Returns

IList<int>

a List<T> of ints.

GetPositions(StringBuilder)

The receiver scans `buf' for sentence ending characters and returns their offsets.

IList<int> GetPositions(StringBuilder buf)

Parameters

buf StringBuilder

a StringBuilder value

Returns

IList<int>

a List<T> of ints.