(string: str)
| 29 | |
| 30 | |
| 31 | def punctuation_standardization(string: str): |
| 32 | punctuation_dict = {"\u201c": "\"", "\u201d": "\"", "\u2019": "'", "\u2018": "'", "\u2013": "-"} |
| 33 | for key, value in punctuation_dict.items(): |
| 34 | string = string.replace(key, value) |
| 35 | return string |
| 36 | |
| 37 | |
| 38 | class KeyDataset(data.Dataset): |
no outgoing calls
no test coverage detected