Mehmet Yıldız commited on
Commit
ae76fcd
·
1 Parent(s): 4e8cc6e

revise base

Browse files
Files changed (1) hide show
  1. toqad.py +13 -12
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 SquadConfig(datasets.BuilderConfig):
43
- """BuilderConfig for SQUAD."""
44
 
45
  def __init__(self, **kwargs):
46
- """BuilderConfig for SQUAD.
47
  Args:
48
  **kwargs: keyword arguments forwarded to super.
49
  """
50
- super(SquadConfig, self).__init__(**kwargs)
51
 
52
 
53
- class Squad(datasets.GeneratorBasedBuilder):
54
- """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
55
 
56
  BUILDER_CONFIGS = [
57
- SquadConfig(
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://rajpurkar.github.io/SQuAD-explorer/",
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(