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
detokenizerIDetokenizersentencesstring[][]
SentenceSample(string, params Span[])
Initializes the current instance.
public SentenceSample(string document, params Span[] sentences)
Parameters
Properties
Document
Retrieves the document.
public virtual string Document { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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.