Class QAInput

    • Constructor Summary

      Constructors 
      Constructor Description
      QAInput​(java.lang.String question, java.lang.String paragraph)
      Creates the BERT QA model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getParagraph()
      Gets the resource document that contains the answer.
      java.lang.String getQuestion()
      Gets the question for the model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QAInput

        public QAInput​(java.lang.String question,
                       java.lang.String paragraph)
        Creates the BERT QA model.
        Parameters:
        question - the question for the model
        paragraph - the resource document that contains the answer
    • Method Detail

      • getQuestion

        public java.lang.String getQuestion()
        Gets the question for the model.
        Returns:
        the question for the model
      • getParagraph

        public java.lang.String getParagraph()
        Gets the resource document that contains the answer.
        Returns:
        the resource document that contains the answer