(self, doc)
| 73 | return doc["body"] + " " + doc["question"] |
| 74 | |
| 75 | def doc_to_target(self, doc): |
| 76 | # TODO: add formula |
| 77 | |
| 78 | answer = doc["answer"].split(" (")[0] |
| 79 | return " " + answer |
| 80 | |
| 81 | def construct_requests(self, doc, ctx): |
| 82 | ll, is_greedy = rf.loglikelihood(ctx, self.doc_to_target(doc)) |