Datasets:
ArXiv:
License:
add dataset_infos
Browse files- dataset_infos.json +3 -0
- feedbackQA.py +7 -6
dataset_infos.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80797ddbd140d2dd54cee3675e901664c1e8dce4ffb80149d3ee9fa5c6513650
|
| 3 |
+
size 1628
|
feedbackQA.py
CHANGED
|
@@ -35,12 +35,13 @@ It has two parts: the first part contains a conventional RQA dataset, \
|
|
| 35 |
whilst this repo contains the second part, which contains feedback(ratings and natural language explanations) for QA pairs.
|
| 36 |
"""
|
| 37 |
|
| 38 |
-
_URL = "https://drive.google.com/drive/folders/1mIcxZZ643k6SVJnZw1FmEOhndaFx4_PG?usp=sharing"
|
| 39 |
#_URLS = {
|
| 40 |
-
# "train":
|
| 41 |
-
# "dev":
|
|
|
|
| 42 |
#}
|
| 43 |
|
|
|
|
| 44 |
|
| 45 |
class FeedbackConfig(datasets.BuilderConfig):
|
| 46 |
"""BuilderConfig for FeedbackQA."""
|
|
@@ -92,12 +93,12 @@ class FeedbackQA(datasets.GeneratorBasedBuilder):
|
|
| 92 |
def _split_generators(self, dl_manager):
|
| 93 |
downloaded_files_path = dl_manager.download_and_extract(_URL)
|
| 94 |
train_file = os.path.join(downloaded_files_path, 'feedback_train.json')
|
| 95 |
-
|
| 96 |
test_file = os.path.join(downloaded_files_path, 'feedback_test.json')
|
| 97 |
-
|
| 98 |
return [
|
| 99 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_file}),
|
| 100 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath":
|
| 101 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_file}),
|
| 102 |
]
|
| 103 |
|
|
|
|
| 35 |
whilst this repo contains the second part, which contains feedback(ratings and natural language explanations) for QA pairs.
|
| 36 |
"""
|
| 37 |
|
|
|
|
| 38 |
#_URLS = {
|
| 39 |
+
# "train": "https://cdn-lfs.huggingface.co/datasets/McGill-NLP/FeedbackQA/46bd763229fc603d73f634a312367acb83c3b713a5dfd9fcf8a9b3e310c39a67",
|
| 40 |
+
# "dev": "https://cdn-lfs.huggingface.co/datasets/McGill-NLP/FeedbackQA/40a93282e5fdee4706c20e32ddd4734151139d67f6844dbcffb9e7be22ae6b8f",
|
| 41 |
+
# "test": "https://cdn-lfs.huggingface.co/datasets/McGill-NLP/FeedbackQA/50c4a21dc778cf064f731161e2213f21d2951cabd9331a1c524f791055040d02"
|
| 42 |
#}
|
| 43 |
|
| 44 |
+
_URL = 'https://drive.google.com/uc?export=download&id=14KV6yKgdjzb6fbFzshGuNvEp9zGv_gol'
|
| 45 |
|
| 46 |
class FeedbackConfig(datasets.BuilderConfig):
|
| 47 |
"""BuilderConfig for FeedbackQA."""
|
|
|
|
| 93 |
def _split_generators(self, dl_manager):
|
| 94 |
downloaded_files_path = dl_manager.download_and_extract(_URL)
|
| 95 |
train_file = os.path.join(downloaded_files_path, 'feedback_train.json')
|
| 96 |
+
val_file = os.path.join(downloaded_files_path, 'feedback_valid.json')
|
| 97 |
test_file = os.path.join(downloaded_files_path, 'feedback_test.json')
|
| 98 |
+
print(test_file)
|
| 99 |
return [
|
| 100 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_file}),
|
| 101 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": val_file}),
|
| 102 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_file}),
|
| 103 |
]
|
| 104 |
|