Vaibhav Adlakha commited on
Commit
6d85502
1 Parent(s): af7254c
Files changed (1) hide show
  1. TopiOCQA.py +3 -24
TopiOCQA.py CHANGED
@@ -26,25 +26,10 @@ import datasets
26
  logger = datasets.logging.get_logger(__name__)
27
 
28
 
29
- # _CITATION = """\
30
- # @article{2016arXiv160605250R,
31
- # author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev},
32
- # Konstantin and {Liang}, Percy},
33
- # title = "{SQuAD: 100,000+ Questions for Machine Comprehension of Text}",
34
- # journal = {arXiv e-prints},
35
- # year = 2016,
36
- # eid = {arXiv:1606.05250},
37
- # pages = {arXiv:1606.05250},
38
- # archivePrefix = {arXiv},
39
- # eprint = {1606.05250},
40
- # }
41
- # """
42
-
43
  _DESCRIPTION = """\
44
  TopiOCQA is an information-seeking conversational dataset with challenging topic switching phenomena.
45
  """
46
 
47
- # _URL = "https://rajpurkar.github.io/SQuAD-explorer/dataset/"
48
  _URLS = {
49
  "train": "data/topiocqa_train.jsonl",
50
  "valid": "data/topiocqa_valid.jsonl",
@@ -52,7 +37,7 @@ _URLS = {
52
 
53
 
54
  class TopiOCQAConfig(datasets.BuilderConfig):
55
- """BuilderConfig for SQUAD."""
56
 
57
  def __init__(self, **kwargs):
58
  """BuilderConfig for TopiOCQA.
@@ -63,8 +48,8 @@ class TopiOCQAConfig(datasets.BuilderConfig):
63
  super(TopiOCQAConfig, self).__init__(**kwargs)
64
 
65
 
66
- class Squad(datasets.GeneratorBasedBuilder):
67
- """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
68
 
69
  BUILDER_CONFIGS = [
70
  TopiOCQAConfig(
@@ -100,12 +85,6 @@ class Squad(datasets.GeneratorBasedBuilder):
100
  ),
101
  supervised_keys=None,
102
  homepage="https://mcgill-nlp.github.io/topiocqa/",
103
- # citation=_CITATION,
104
- # task_templates=[
105
- # QuestionAnsweringExtractive(
106
- # question_column="Question", context_column="context", answers_column="answers"
107
- # )
108
- # ],
109
  )
110
 
111
  def _split_generators(self, dl_manager):
 
26
  logger = datasets.logging.get_logger(__name__)
27
 
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  _DESCRIPTION = """\
30
  TopiOCQA is an information-seeking conversational dataset with challenging topic switching phenomena.
31
  """
32
 
 
33
  _URLS = {
34
  "train": "data/topiocqa_train.jsonl",
35
  "valid": "data/topiocqa_valid.jsonl",
 
37
 
38
 
39
  class TopiOCQAConfig(datasets.BuilderConfig):
40
+ """BuilderConfig for TopiOCQA."""
41
 
42
  def __init__(self, **kwargs):
43
  """BuilderConfig for TopiOCQA.
 
48
  super(TopiOCQAConfig, self).__init__(**kwargs)
49
 
50
 
51
+ class TopiOCQA(datasets.GeneratorBasedBuilder):
52
+ """TopiOCQA: Open-domain Conversational Question Answering with Topic Switching"""
53
 
54
  BUILDER_CONFIGS = [
55
  TopiOCQAConfig(
 
85
  ),
86
  supervised_keys=None,
87
  homepage="https://mcgill-nlp.github.io/topiocqa/",
 
 
 
 
 
 
88
  )
89
 
90
  def _split_generators(self, dl_manager):