Class SentenceSample

    • Constructor Detail

      • SentenceSample

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

        public SentenceSample​(Detokenizer detokenizer,
                              String[][] sentences)
    • Method Detail

      • getDocument

        public String getDocument()
        Returns:
        the document as a plain string.
      • getSentences

        public Span[] getSentences()
        Returns:
        the spans of the sentences in a document.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object