timoschick / pet

This repository contains the code for "Exploiting Cloze Questions for Few-Shot Text Classification and Natural Language Inference"
https://arxiv.org/abs/2001.07676
Apache License 2.0
1.62k stars 283 forks source link

In what format should the csv files listed in the taskprocessor be? #31

Closed ghost closed 3 years ago

ghost commented 3 years ago

In what format should the csv files listed in the taskprocessor be? What should the row names in the csv files be? Examples of files like this?

timoschick commented 3 years ago

This strongly depends on the task you want to solve. For Yelp, Ag's News and Yahoo, the implemented task processors use this format. For SuperGLUE, they use the default SuperGLUE jsonl format. You can also look at this example to see how you can write your own custom task processors for arbitrary file formats.