siyue commited on
Commit
52c9efa
1 Parent(s): beabacb
Files changed (2) hide show
  1. README.md +6 -0
  2. squall.py +6 -6
README.md CHANGED
@@ -18,6 +18,12 @@ WARN: alignment data (i.e., `nl_ralign` and `align`) is not implemented.
18
  ## Source
19
  Please refer to [github repo](https://github.com/tzshi/squall/) for source data.
20
 
 
 
 
 
 
 
21
  ## Contact
22
  For any issues or questions, kindly email us at: Siyue Zhang (siyue001@e.ntu.edu.sg).
23
 
 
18
  ## Source
19
  Please refer to [github repo](https://github.com/tzshi/squall/) for source data.
20
 
21
+ ## Use
22
+ ```python
23
+ from datasets import load_dataset
24
+ dataset = load_dataset("siyue/squall","0")
25
+ ```
26
+
27
  ## Contact
28
  For any issues or questions, kindly email us at: Siyue Zhang (siyue001@e.ntu.edu.sg).
29
 
squall.py CHANGED
@@ -69,11 +69,11 @@ class Squall(datasets.GeneratorBasedBuilder):
69
  """SQUALL: Lexical-level Supervised Table Question Answering Dataset."""
70
 
71
  BUILDER_CONFIGS = [
72
- SquallConfig(name = 0),
73
- SquallConfig(name = 1),
74
- SquallConfig(name = 2),
75
- SquallConfig(name = 3),
76
- SquallConfig(name = 4)
77
  ]
78
 
79
  def _info(self):
@@ -142,7 +142,7 @@ class Squall(datasets.GeneratorBasedBuilder):
142
  logger.info("generating examples from = %s", filepath)
143
 
144
  squall_full = filepath["squall"]
145
- dev_ids = filepath["dev-" + str(self.config.name)]
146
  test = filepath["wtq-test"]
147
 
148
  if split_key != 'test':
 
69
  """SQUALL: Lexical-level Supervised Table Question Answering Dataset."""
70
 
71
  BUILDER_CONFIGS = [
72
+ SquallConfig(name = '0'),
73
+ SquallConfig(name = '1'),
74
+ SquallConfig(name = '2'),
75
+ SquallConfig(name = '3'),
76
+ SquallConfig(name = '4')
77
  ]
78
 
79
  def _info(self):
 
142
  logger.info("generating examples from = %s", filepath)
143
 
144
  squall_full = filepath["squall"]
145
+ dev_ids = filepath["dev-" + self.config.name]
146
  test = filepath["wtq-test"]
147
 
148
  if split_key != 'test':