Update files from the datasets library (from 1.0.2)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.0.2
- dataset_infos.json +0 -0
- xtreme.py +3 -3
dataset_infos.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
xtreme.py
CHANGED
@@ -363,7 +363,7 @@ _TEXT_FEATURES = {
|
|
363 |
"PAWS-X": {"sentence1": "sentence1", "sentence2": "sentence2"},
|
364 |
"udpos": {"word": "", "pos_tag": ""},
|
365 |
"SQuAD": {"id": "id", "title": "title", "context": "context", "question": "question", "answers": "answers"},
|
366 |
-
"PAN-X": {"
|
367 |
}
|
368 |
_DATA_URLS = {
|
369 |
"tydiqa": "https://storage.googleapis.com/tydiqa/",
|
@@ -455,7 +455,7 @@ class Xtreme(datasets.GeneratorBasedBuilder):
|
|
455 |
features = datasets.Features(
|
456 |
{
|
457 |
"words": datasets.Sequence(datasets.Value("string")),
|
458 |
-
"
|
459 |
"langs": datasets.Sequence(datasets.Value("string")),
|
460 |
}
|
461 |
)
|
@@ -895,7 +895,7 @@ class Xtreme(datasets.GeneratorBasedBuilder):
|
|
895 |
for line in f:
|
896 |
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
|
897 |
if words:
|
898 |
-
yield guid_index, {"words": words, "
|
899 |
guid_index += 1
|
900 |
words = []
|
901 |
ner_tags = []
|
|
|
363 |
"PAWS-X": {"sentence1": "sentence1", "sentence2": "sentence2"},
|
364 |
"udpos": {"word": "", "pos_tag": ""},
|
365 |
"SQuAD": {"id": "id", "title": "title", "context": "context", "question": "question", "answers": "answers"},
|
366 |
+
"PAN-X": {"words": "", "ner": "", "lang": ""},
|
367 |
}
|
368 |
_DATA_URLS = {
|
369 |
"tydiqa": "https://storage.googleapis.com/tydiqa/",
|
|
|
455 |
features = datasets.Features(
|
456 |
{
|
457 |
"words": datasets.Sequence(datasets.Value("string")),
|
458 |
+
"ner": datasets.Sequence(datasets.Value("string")),
|
459 |
"langs": datasets.Sequence(datasets.Value("string")),
|
460 |
}
|
461 |
)
|
|
|
895 |
for line in f:
|
896 |
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
|
897 |
if words:
|
898 |
+
yield guid_index, {"words": words, "ner": ner_tags, "langs": langs}
|
899 |
guid_index += 1
|
900 |
words = []
|
901 |
ner_tags = []
|