(self, text)
| 68 | return lls |
| 69 | |
| 70 | def detokenize(self, text): |
| 71 | text = text.replace(" '", "'") |
| 72 | text = text.replace(" \n", "\n") |
| 73 | text = text.replace("\n ", "\n") |
| 74 | text = text.replace(" n't", "n't") |
| 75 | text = text.replace("`` ", '"') |
| 76 | text = text.replace("''", '"') |
| 77 | # punctuation |
| 78 | text = text.replace(" :", ":") |
| 79 | text = text.replace(" ;", ";") |
| 80 | text = text.replace(" !", "!") |
| 81 | text = text.replace(" ?", "?") |
| 82 | text = text.replace(" ,", ",") |
| 83 | text = text.replace(" .", ".") |
| 84 | return text |
| 85 | |
| 86 | def process_results(self, doc, results): |
| 87 | gold = self.CHOICES.index(doc["answers"]) |
no outgoing calls
no test coverage detected