Mehmet Yıldız
commited on
Commit
·
ae76fcd
1
Parent(s):
4e8cc6e
revise base
Browse files
toqad.py
CHANGED
@@ -30,31 +30,32 @@ _CITATION = """
|
|
30 |
"""
|
31 |
|
32 |
_DESCRIPTION = """\
|
|
|
33 |
"""
|
34 |
|
35 |
-
_URL = "https://raw.githubusercontent.com/meetyildiz/toqad/main/"
|
36 |
_URLS = {
|
37 |
-
"train": _URL + "train.json",
|
38 |
-
"dev": _URL + "dev.json",
|
39 |
-
"test": _URL + "test.json",
|
40 |
}
|
41 |
|
42 |
-
class
|
43 |
-
"""BuilderConfig for
|
44 |
|
45 |
def __init__(self, **kwargs):
|
46 |
-
"""BuilderConfig for
|
47 |
Args:
|
48 |
**kwargs: keyword arguments forwarded to super.
|
49 |
"""
|
50 |
-
super(
|
51 |
|
52 |
|
53 |
-
class
|
54 |
-
"""
|
55 |
|
56 |
BUILDER_CONFIGS = [
|
57 |
-
|
58 |
name="plain_text",
|
59 |
version=datasets.Version("1.0.0", ""),
|
60 |
description="Plain text",
|
@@ -81,7 +82,7 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
81 |
# No default supervised_keys (as we have to pass both question
|
82 |
# and context as input).
|
83 |
supervised_keys=None,
|
84 |
-
homepage="https://
|
85 |
citation=_CITATION,
|
86 |
task_templates=[
|
87 |
QuestionAnsweringExtractive(
|
|
|
30 |
"""
|
31 |
|
32 |
_DESCRIPTION = """\
|
33 |
+
Turkish Question Answering Dataset - Base
|
34 |
"""
|
35 |
|
36 |
+
_URL = "https://raw.githubusercontent.com/meetyildiz/toqad/main/data/"
|
37 |
_URLS = {
|
38 |
+
"train": _URL + "toqad-train.json",
|
39 |
+
"dev": _URL + "toqad-dev.json",
|
40 |
+
"test": _URL + "toqad-test.json",
|
41 |
}
|
42 |
|
43 |
+
class ToqadConfig(datasets.BuilderConfig):
|
44 |
+
"""BuilderConfig for Toqad."""
|
45 |
|
46 |
def __init__(self, **kwargs):
|
47 |
+
"""BuilderConfig for Toqad.
|
48 |
Args:
|
49 |
**kwargs: keyword arguments forwarded to super.
|
50 |
"""
|
51 |
+
super(ToqadConfig, self).__init__(**kwargs)
|
52 |
|
53 |
|
54 |
+
class Toqad(datasets.GeneratorBasedBuilder):
|
55 |
+
"""Toqad: The Stanford Question Answering Dataset. Version 1.1."""
|
56 |
|
57 |
BUILDER_CONFIGS = [
|
58 |
+
ToqadConfig(
|
59 |
name="plain_text",
|
60 |
version=datasets.Version("1.0.0", ""),
|
61 |
description="Plain text",
|
|
|
82 |
# No default supervised_keys (as we have to pass both question
|
83 |
# and context as input).
|
84 |
supervised_keys=None,
|
85 |
+
homepage="https://github.com/meetyildiz/toqad",
|
86 |
citation=_CITATION,
|
87 |
task_templates=[
|
88 |
QuestionAnsweringExtractive(
|