(self, doc, results)
| 302 | return {"f1": "f1"} |
| 303 | |
| 304 | def process_results(self, doc, results): |
| 305 | if doc["is_yes_no"]: |
| 306 | prediction = " yes" if results[0] > results[1] else " no" |
| 307 | elif len(results[0].strip()) == 0: |
| 308 | prediction = "Unanswerable" |
| 309 | else: |
| 310 | prediction = results[0] |
| 311 | return { |
| 312 | "f1": (prediction, doc["outputs"]) |
| 313 | } |
| 314 | |
| 315 | def construct_requests(self, doc, ctx): |
| 316 | if doc["is_yes_no"]: |
nothing calls this directly
no outgoing calls
no test coverage detected