Exemplo n.º 1
0
 def __repr__(self):
     s = ""
     s += "qas_id: %s" % (tokenization.printable_text(self.qas_id))
     s += ", question_text: %s" % (tokenization.printable_text(
         self.question_text))
     s += ", doc_tokens: [%s]" % (" ".join(self.doc_tokens))
     if self.start_position is not None:
         s += ", orig_answer_text: %s" % (self.orig_answer_text)
         s += ", start_position: %d" % (self.start_position)
         s += ", end_position: %d" % (self.end_position)
     return s
Exemplo n.º 2
0
 def __repr__(self):
     s = ""
     s += "qas_id: %s" % (tokenization.printable_text(self.qas_id))
     s += ", question_text: %s" % (tokenization.printable_text(
         self.question_text))
     s += ", doc_tokens: [%s]" % (" ".join(self.doc_tokens))
     if self.start_position:
         s += ", start_position: %d" % (self.start_position)
     if self.start_position:
         s += ", end_position: %d" % (self.end_position)
     if self.start_position:
         s += ", is_impossible: %r" % (self.is_impossible)
     return s