Package ai.djl.modality.nlp.qa
Class QAInput
java.lang.Object
ai.djl.modality.nlp.qa.QAInput
The input container for a
Application.NLP.QUESTION_ANSWER
model.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource document that contains the answer.Returns the question for the model.
-
Constructor Details
-
QAInput
Creates the BERT QA model.- Parameters:
question
- the question for the modelparagraph
- the resource document that contains the answer
-
-
Method Details
-
getQuestion
Returns the question for the model.- Returns:
- the question for the model
-
getParagraph
Returns the resource document that contains the answer.- Returns:
- the resource document that contains the answer
-