Class QAInput

java.lang.Object
ai.djl.modality.nlp.qa.QAInput

public class QAInput extends Object
The input container for a Application.NLP.QUESTION_ANSWER model.
  • Constructor Details

    • QAInput

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

    • getQuestion

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

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