(self, doc, ctx)
| 256 | return " {}".format({0: "yes", 1: "no"}[doc["label"]]) |
| 257 | |
| 258 | def construct_requests(self, doc, ctx): |
| 259 | ll_yes, _ = rf.loglikelihood(ctx, " yes") |
| 260 | ll_no, _ = rf.loglikelihood(ctx, " no") |
| 261 | return ll_yes, ll_no |
| 262 | |
| 263 | def process_results(self, doc, results): |
| 264 | ll_yes, ll_no = results |
nothing calls this directly
no test coverage detected