Skip to content

Commit

Permalink
Merge pull request #86 from HallerPatrick/main
Browse files Browse the repository at this point in the history
Fix loading of dataset subset
  • Loading branch information
HallerPatrick authored Dec 23, 2023
2 parents 56c9cb9 + 3ab3b18 commit 8dc2332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def preprocess_qa(example):
self.question_answering = load_dataset("squad", split="train").flatten()\
.rename_column("answers.text", "answer").map(preprocess_qa).select([1, 2, 3])
self.ner = load_dataset("conll2003", split="train").select([1, 2, 3])
self.translation = load_dataset("opus100", language_pair="de-nl", split="test").flatten()\
self.translation = load_dataset("opus100", "de-nl", split="test").flatten()\
.rename_columns({"translation.de": "german", "translation.nl": "dutch"}).select([1, 2, 3])

def test_translation(self):
Expand Down

0 comments on commit 8dc2332

Please sign in to comment.