Class AnswerSpanResponseDTO

    • Constructor Detail

      • AnswerSpanResponseDTO

        public AnswerSpanResponseDTO()
    • Method Detail

      • text

        public String text()
        Get the text value.
        Returns:
        the text value
      • withText

        public AnswerSpanResponseDTO withText​(String text)
        Set the text value.
        Parameters:
        text - the text value to set
        Returns:
        the AnswerSpanResponseDTO object itself.
      • score

        public Double score()
        Get the score value.
        Returns:
        the score value
      • withScore

        public AnswerSpanResponseDTO withScore​(Double score)
        Set the score value.
        Parameters:
        score - the score value to set
        Returns:
        the AnswerSpanResponseDTO object itself.
      • startIndex

        public Integer startIndex()
        Get the startIndex value.
        Returns:
        the startIndex value
      • withStartIndex

        public AnswerSpanResponseDTO withStartIndex​(Integer startIndex)
        Set the startIndex value.
        Parameters:
        startIndex - the startIndex value to set
        Returns:
        the AnswerSpanResponseDTO object itself.
      • endIndex

        public Integer endIndex()
        Get the endIndex value.
        Returns:
        the endIndex value
      • withEndIndex

        public AnswerSpanResponseDTO withEndIndex​(Integer endIndex)
        Set the endIndex value.
        Parameters:
        endIndex - the endIndex value to set
        Returns:
        the AnswerSpanResponseDTO object itself.