class_docstr: Predictor for the :class:`~allennlp.models.bidaf.BidirectionalAttentionFlow` model.
docstr: Make a machine comprehension prediction on the supplied input.
  See https://rajpurkar.github.io/SQuAD-explorer/ for more information about the machine comprehension task.
  
  Parameters
  ----------
  question : ``str``
      A question about the content in the supplied paragraph.  The question must be answerable by a
      span in the paragraph.
  passage : ``str``
      A paragraph of information relevant to the question.
  
  Returns
  -------
  A dictionary that represents the prediction made by the system.  The answer string will be under the
  "best_span_str" key.
docstr_tok: ["Make","a","machine","comprehension","prediction","on","the","supplied","input",".","See","https",":","\/\/rajpurkar.github.io\/SQuAD-explorer\/","for","more","information","about","the","machine","comprehension","task",".","Parameters","--","--","--","--","--","question",":","``","str","``","A","question","about","the","content","in","the","supplied","paragraph",".","The","question","must","be","answerable","by","a","span","in","the","paragraph",".","passage",":","``","str","``","A","paragraph","of","information","relevant","to","the","question",".","Returns","--","--","--","-","A","dictionary","that","represents","the","prediction","made","by","the","system",".","The","answer","string","will","be","under","the","''","best_span_str","''","key","."]
code: def predict(self, question, passage):
      """
      Make a machine comprehension prediction on the supplied input.
      See https://rajpurkar.github.io/SQuAD-explorer/ for more information about the machine comprehension task.
  
      Parameters
      ----------
      question : ``str``
          A question about the content in the supplied paragraph.  The question must be answerable by a
          span in the paragraph.
      passage : ``str``
          A paragraph of information relevant to the question.
  
      Returns
      -------
      A dictionary that represents the prediction made by the system.  The answer string will be under the
      "best_span_str" key.
      """
      return self.predict_json(
          {"passage": passage, "question": question}
      )
  
file_path: magnitude/pymagnitude/third_party/allennlp/predictors/bidaf.py
imports: from __future__ import absolute_import
  from allennlp.common.util import JsonDict
  from allennlp.data import Instance
  from allennlp.predictors.predictor import Predictor
label_desc: Use image node_id 1 for calling the BidafPredictor obj's underlying member method code with example usage: obj.predict(question, passage) and returns: self