| 64 | return self.__repr__() |
| 65 | |
| 66 | def __repr__(self): |
| 67 | s = [] |
| 68 | s.append("qas_id: %s" % (tokenization.printable_text(self.qas_id))) |
| 69 | s.append("question_text: %s" % |
| 70 | (tokenization.printable_text(self.question_text))) |
| 71 | s.append("doc_tokens: [%s]" % (" ".join(self.doc_tokens))) |
| 72 | if self.start_position: |
| 73 | s.append("start_position: %d" % (self.start_position)) |
| 74 | if self.start_position: |
| 75 | s.append("end_position: %d" % (self.end_position)) |
| 76 | return ", ".join(s) |
| 77 | |
| 78 | |
| 79 | def _check_is_max_context(doc_spans, cur_span_index, position): |