(self, doc)
| 60 | return [[x, y] for x, y in zip(text, labels)] |
| 61 | |
| 62 | def _process_doc(self, doc): |
| 63 | return { |
| 64 | "query": doc[0], |
| 65 | "choices": ["No", "Yes"], |
| 66 | "gold": doc[1], |
| 67 | } |
| 68 | |
| 69 | def doc_to_text(self, doc): |
| 70 | return f"Is the following statement hateful? Respond with either Yes or No. Statement: '{doc['query']}'" |
nothing calls this directly
no outgoing calls
no test coverage detected