Merge pull request #352 from theblackcat102/main

[fix] rename old summary human feedback dataset to new one
This commit is contained in:
sanagnos
2023-01-04 17:28:23 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -60,7 +60,7 @@ class HFSummaryQuality(Dataset):
def __init__(self, split, tokenizer, max_length=300) -> None:
super().__init__()
assert split in ("validation", "test")
dataset = load_dataset("Tristan/summarize_from_feedback", "axis")[split]
dataset = load_dataset("openai/summarize_from_feedback", "axis")[split]
self.max_length = max_length
mean_scores = defaultdict(list)
self.contexts = []
+1 -1
View File
@@ -118,7 +118,7 @@ class HFSummary(Dataset):
self.index2summary = {}
self.max_comparison_per_sample = max_comparison_per_sample
major_split = split if "train" == split else "validation"
dataset = load_dataset("Tristan/summarize_from_feedback", "comparisons")[major_split]
dataset = load_dataset("openai/summarize_from_feedback", "comparisons")[major_split]
for data in dataset:
if (
"extra" in data