Class SentenceSample

    • Constructor Detail

      • SentenceSample

        public SentenceSample​(CharSequence document,
                              Span... sentences)
        Initializes the current instance.
        Parameters:
        document -
        sentences -
      • SentenceSample

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

      • getDocument

        public String getDocument()
        Retrieves the document.
        Returns:
        the document
      • getSentences

        public Span[] getSentences()
        Retrieves the sentences.
        Returns:
        the begin indexes of the sentences in the document.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object