Datasets:
delete tokenized answers
Browse files- README.md +1 -7
- WikiHowNFQA.jsonl +2 -2
- WikiHowNFQA.py +0 -16
README.md
CHANGED
@@ -57,7 +57,6 @@ size_categories:
|
|
57 |
- `related_document_urls_wayback_snapshots`: A list of URLs to web archive snapshots of related documents corresponding references from WikiHow article.
|
58 |
- `split`: The split of the dataset that the instance belongs to ('train', 'validation', or 'test').
|
59 |
- `cluster`: An integer identifier for the cluster that the instance belongs to. <!-- The dataset is split into 'train', 'validation', and 'test' such that all instances from the same cluster belong to the same split. This is to ensure that there is no intersection of paraphrased questions across different splits. If you plan to create a new split of the dataset, it is important to maintain this clustering to avoid data leakage between splits. -->
|
60 |
-
- `answer_tokenized`: The tokenized answer using [Trankit library](https://github.com/nlp-uoregon/trankit/tree/master) This includes the full text of the answer, a list of sentences in the answer, and the language of the answer.
|
61 |
|
62 |
<a name="dataset-instances"></a>
|
63 |
### Data Instances
|
@@ -71,12 +70,7 @@ An example instance from the WikiHowQA dataset:
|
|
71 |
'answer': 'To cook pork tenderloin, put it in a roasting pan and cook it in the oven for 55 minutes at 400 degrees Fahrenheit, turning it over halfway through. You can also sear the pork tenderloin on both sides in a skillet before putting it in the oven, which will reduce the cooking time to 15 minutes. If you want to grill pork tenderloin, start by preheating the grill to medium-high heat. Then, cook the tenderloin on the grill for 30-40 minutes over indirect heat, flipping it occasionally.',
|
72 |
'related_document_urls_wayback_snapshots': ['http://web.archive.org/web/20210605161310/https://www.allrecipes.com/recipe/236114/pork-roast-with-the-worlds-best-rub/', 'http://web.archive.org/web/20210423074902/https://www.bhg.com/recipes/how-to/food-storage-safety/using-a-meat-thermometer/', ...],
|
73 |
'split': 'train',
|
74 |
-
'cluster': 2635
|
75 |
-
'answer_tokenized': {
|
76 |
-
'text': 'To cook pork tenderloin, put it in a roasting pan and cook it in the oven for 55 minutes at 400 degrees Fahrenheit, turning it over halfway through. You can also sear the pork tenderloin on both sides in a skillet before putting it in the oven, which will reduce the cooking time to 15 minutes. If you want to grill pork tenderloin, start by preheating the grill to medium-high heat. Then, cook the tenderloin on the grill for 30-40 minutes over indirect heat, flipping it occasionally. If you want to learn how to stuff your pork tenderloin before you cook it, keep reading the article!',
|
77 |
-
'sentences': [{'id': 1, 'text': 'To cook pork tenderloin, put it in a roasting pan and cook it in the oven for 55 minutes at 400 degrees Fahrenheit, turning it over halfway through.', 'tokens': [{'id': 1, 'text': 'To', 'dspan': [0, 2], 'span': [0, 2]}, {'id': 2, 'text': 'cook', 'dspan': [3, 7], 'span': [3, 7]}, ...]}, ...],
|
78 |
-
'lang': 'english'
|
79 |
-
}
|
80 |
}
|
81 |
```
|
82 |
|
|
|
57 |
- `related_document_urls_wayback_snapshots`: A list of URLs to web archive snapshots of related documents corresponding references from WikiHow article.
|
58 |
- `split`: The split of the dataset that the instance belongs to ('train', 'validation', or 'test').
|
59 |
- `cluster`: An integer identifier for the cluster that the instance belongs to. <!-- The dataset is split into 'train', 'validation', and 'test' such that all instances from the same cluster belong to the same split. This is to ensure that there is no intersection of paraphrased questions across different splits. If you plan to create a new split of the dataset, it is important to maintain this clustering to avoid data leakage between splits. -->
|
|
|
60 |
|
61 |
<a name="dataset-instances"></a>
|
62 |
### Data Instances
|
|
|
70 |
'answer': 'To cook pork tenderloin, put it in a roasting pan and cook it in the oven for 55 minutes at 400 degrees Fahrenheit, turning it over halfway through. You can also sear the pork tenderloin on both sides in a skillet before putting it in the oven, which will reduce the cooking time to 15 minutes. If you want to grill pork tenderloin, start by preheating the grill to medium-high heat. Then, cook the tenderloin on the grill for 30-40 minutes over indirect heat, flipping it occasionally.',
|
71 |
'related_document_urls_wayback_snapshots': ['http://web.archive.org/web/20210605161310/https://www.allrecipes.com/recipe/236114/pork-roast-with-the-worlds-best-rub/', 'http://web.archive.org/web/20210423074902/https://www.bhg.com/recipes/how-to/food-storage-safety/using-a-meat-thermometer/', ...],
|
72 |
'split': 'train',
|
73 |
+
'cluster': 2635
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
```
|
76 |
|
WikiHowNFQA.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c00ce4afb2b37045f7ee51bda607d4cad8d26d9721c638d47b101456ecc55db3
|
3 |
+
size 17227651
|
WikiHowNFQA.py
CHANGED
@@ -14,21 +14,6 @@ class WikiHowNFQADataset(GeneratorBasedBuilder):
|
|
14 |
'related_document_urls_wayback_snapshots': Sequence(Value('string')),
|
15 |
'split': ClassLabel(names=['train', 'validation', 'test']),
|
16 |
'cluster': Value('int32'),
|
17 |
-
'answer_tokenized': Sequence({
|
18 |
-
'text': Value('string'),
|
19 |
-
'sentences': Sequence({
|
20 |
-
'id': Value('int32'),
|
21 |
-
'text': Value('string'),
|
22 |
-
'tokens': Sequence({
|
23 |
-
'id': Value('int32'),
|
24 |
-
'text': Value('string'),
|
25 |
-
'dspan': Sequence(Value('int32')),
|
26 |
-
'span': Sequence(Value('int32')),
|
27 |
-
}),
|
28 |
-
'dspan': Sequence(Value('int32')),
|
29 |
-
}),
|
30 |
-
'lang': Value('string'),
|
31 |
-
}),
|
32 |
})
|
33 |
|
34 |
return DatasetInfo(
|
@@ -60,5 +45,4 @@ class WikiHowNFQADataset(GeneratorBasedBuilder):
|
|
60 |
'related_document_urls_wayback_snapshots': data['related_document_urls_wayback_snapshots'],
|
61 |
'split': data['split'],
|
62 |
'cluster': data['cluster'],
|
63 |
-
'answer_tokenized': data['answer_tokenized']
|
64 |
}
|
|
|
14 |
'related_document_urls_wayback_snapshots': Sequence(Value('string')),
|
15 |
'split': ClassLabel(names=['train', 'validation', 'test']),
|
16 |
'cluster': Value('int32'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
})
|
18 |
|
19 |
return DatasetInfo(
|
|
|
45 |
'related_document_urls_wayback_snapshots': data['related_document_urls_wayback_snapshots'],
|
46 |
'split': data['split'],
|
47 |
'cluster': data['cluster'],
|
|
|
48 |
}
|