MCPcopy Create free account
hub / github.com/apache/singa / __repr__

Method __repr__

examples/onnx/bert/run_onnx_squad.py:66–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
79def _check_is_max_context(doc_spans, cur_span_index, position):

Callers 1

__str__Method · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected