Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- README.md +3 -2
- doc2dial.py +2 -2
README.md
CHANGED
|
@@ -18,6 +18,7 @@ task_categories:
|
|
| 18 |
task_ids:
|
| 19 |
- closed-domain-qa
|
| 20 |
paperswithcode_id: doc2dial
|
|
|
|
| 21 |
---
|
| 22 |
|
| 23 |
# Dataset Card for doc2dial
|
|
@@ -48,11 +49,11 @@ paperswithcode_id: doc2dial
|
|
| 48 |
|
| 49 |
## Dataset Description
|
| 50 |
|
| 51 |
-
- **Homepage:** https://doc2dial.github.io
|
| 52 |
- **Repository:** [Needs More Information]
|
| 53 |
- **Paper:** https://www.aclweb.org/anthology/2020.emnlp-main.652.pdf
|
| 54 |
- **Leaderboard:**
|
| 55 |
-
- **Point of Contact:**
|
| 56 |
|
| 57 |
### Dataset Summary
|
| 58 |
|
|
|
|
| 18 |
task_ids:
|
| 19 |
- closed-domain-qa
|
| 20 |
paperswithcode_id: doc2dial
|
| 21 |
+
pretty_name: doc2dial
|
| 22 |
---
|
| 23 |
|
| 24 |
# Dataset Card for doc2dial
|
|
|
|
| 49 |
|
| 50 |
## Dataset Description
|
| 51 |
|
| 52 |
+
- **Homepage:** https://doc2dial.github.io
|
| 53 |
- **Repository:** [Needs More Information]
|
| 54 |
- **Paper:** https://www.aclweb.org/anthology/2020.emnlp-main.652.pdf
|
| 55 |
- **Leaderboard:**
|
| 56 |
+
- **Point of Contact:**
|
| 57 |
|
| 58 |
### Dataset Summary
|
| 59 |
|
doc2dial.py
CHANGED
|
@@ -291,7 +291,7 @@ class Doc2dial(datasets.GeneratorBasedBuilder):
|
|
| 291 |
for dial in dials:
|
| 292 |
all_prev_utterances = []
|
| 293 |
for idx, turn in enumerate(dial["turns"]):
|
| 294 |
-
all_prev_utterances.append("\t{
|
| 295 |
if turn["role"] == "agent":
|
| 296 |
continue
|
| 297 |
if idx + 1 < len(dial["turns"]):
|
|
@@ -302,7 +302,7 @@ class Doc2dial(datasets.GeneratorBasedBuilder):
|
|
| 302 |
else:
|
| 303 |
continue
|
| 304 |
question = " ".join(list(reversed(all_prev_utterances))).strip()
|
| 305 |
-
id_ = "{
|
| 306 |
qa = {
|
| 307 |
"id": id_,
|
| 308 |
"title": doc_id,
|
|
|
|
| 291 |
for dial in dials:
|
| 292 |
all_prev_utterances = []
|
| 293 |
for idx, turn in enumerate(dial["turns"]):
|
| 294 |
+
all_prev_utterances.append(f"\t{turn['role']}:{turn['utterance']}")
|
| 295 |
if turn["role"] == "agent":
|
| 296 |
continue
|
| 297 |
if idx + 1 < len(dial["turns"]):
|
|
|
|
| 302 |
else:
|
| 303 |
continue
|
| 304 |
question = " ".join(list(reversed(all_prev_utterances))).strip()
|
| 305 |
+
id_ = f"{dial['dial_id']}_{turn['turn_id']}"
|
| 306 |
qa = {
|
| 307 |
"id": id_,
|
| 308 |
"title": doc_id,
|