(self, doc, results)
| 95 | ] |
| 96 | |
| 97 | def process_results(self, doc, results): |
| 98 | likelihood1, likelihood2 = results |
| 99 | |
| 100 | # the model got this case right iff the good sentence scored higher than the bad sentence |
| 101 | acc = 1.0 if likelihood1 > likelihood2 else 0.0 |
| 102 | |
| 103 | return { |
| 104 | "acc": acc, |
| 105 | } |
| 106 | |
| 107 | def higher_is_better(self): |
| 108 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected