Package ai.djl.modality.nlp.qa
Class QAInput
- java.lang.Object
-
- ai.djl.modality.nlp.qa.QAInput
-
public class QAInput extends java.lang.Object
The input container for aApplication.NLP.QUESTION_ANSWER
model.
-
-
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.
-