Skip to content

Required dataformat for corpus.jsonl, queries.jsonl, test.tsv #584

Answered by imenelydiaker
paulesause asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

The issue is that creating a new task by inheriting from an AbsTask will use the default load_data() function and its default behavior, this function expects a HF Dataset as input (see default behavior here.
All you need to do is to overwrite load_data() and add your methods to open the JSON and TSV files and push them to a dictionnary, you can find examples of this overwriting in some Retrieval tasks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imenelydiaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants