Klasse SentenceSample

java.lang.Object
opennlp.tools.sentdetect.SentenceSample
Alle implementierten Schnittstellen:
Serializable, Sample

public class SentenceSample extends Object implements Sample
A SentenceSample contains a document with begin indexes of the individual sentences.
Siehe auch:
  • Konstruktordetails

    • SentenceSample

      public SentenceSample(CharSequence document, Span... sentences)
      Initializes the current instance.
      Parameter:
      document - The document represented as plain CharSequence.
      sentences - One or more spans that represent a sentence each.
    • SentenceSample

      public SentenceSample(Detokenizer detokenizer, String[][] sentences)
  • Methodendetails

    • getDocument

      public String getDocument()
      Gibt zurück:
      the document as a plain string.
    • getSentences

      public Span[] getSentences()
      Gibt zurück:
      the spans of the sentences in a document.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object