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
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
Returns
GetPositions(string)
The receiver scans the specified string for sentence ending characters and returns their offsets.
IList<int> GetPositions(string s)
Parameters
Returns
GetPositions(StringBuilder)
The receiver scans `buf' for sentence ending characters and returns their offsets.
IList<int> GetPositions(StringBuilder buf)
Parameters
bufStringBuildera StringBuilder value