(self, doc, turnid=None)
| 124 | } |
| 125 | |
| 126 | def doc_to_target(self, doc, turnid=None): |
| 127 | # Default to prediction of last turn. |
| 128 | if turnid is None: |
| 129 | turnid = len(doc["questions"]["input_text"]) |
| 130 | raw_text = doc["answers"]["input_text"][turnid - 1] |
| 131 | return " " + raw_text |
| 132 | |
| 133 | def construct_requests(self, doc, ctx): |
| 134 | """Uses RequestFactory to construct Requests and returns an iterable of |
nothing calls this directly
no outgoing calls
no test coverage detected