crodri commited on
Commit
a86ba83
1 Parent(s): 49661f5

changed some stuff

Browse files
Files changed (1) hide show
  1. wikicat_ca.py +5 -5
wikicat_ca.py CHANGED
@@ -22,11 +22,11 @@ _DEV_FILE = "hfeval_ca.json"
22
  #_TEST_FILE = "test.json"
23
 
24
 
25
- class teclaConfig(datasets.BuilderConfig):
26
  """ Builder config for the Topicat dataset """
27
 
28
  def __init__(self, **kwargs):
29
- """BuilderConfig for TeCla.
30
  Args:
31
  **kwargs: keyword arguments forwarded to super.
32
  """
@@ -37,7 +37,7 @@ class wikicat_ca(datasets.GeneratorBasedBuilder):
37
  """ WikiCAT_ca Dataset """
38
 
39
  BUILDER_CONFIGS = [
40
- teclaConfig(
41
  name="WikiCAT_ca",
42
  version=datasets.Version("1.1.0"),
43
  description="WikiCAT_ca",
@@ -78,8 +78,8 @@ class wikicat_ca(datasets.GeneratorBasedBuilder):
78
  """This function returns the examples in the raw (text) form."""
79
  logger.info("generating examples from = %s", filepath)
80
  with open(filepath, encoding="utf-8") as f:
81
- acn_ca = json.load(f)
82
- for id_, article in enumerate(acn_ca["data"]):
83
  text = article["sentence"]
84
  label = article["label"]
85
  yield id_, {
 
22
  #_TEST_FILE = "test.json"
23
 
24
 
25
+ class wikicat_caConfig(datasets.BuilderConfig):
26
  """ Builder config for the Topicat dataset """
27
 
28
  def __init__(self, **kwargs):
29
+ """BuilderConfig for WikiCAT_ca.
30
  Args:
31
  **kwargs: keyword arguments forwarded to super.
32
  """
 
37
  """ WikiCAT_ca Dataset """
38
 
39
  BUILDER_CONFIGS = [
40
+ wikicat_caConfig(
41
  name="WikiCAT_ca",
42
  version=datasets.Version("1.1.0"),
43
  description="WikiCAT_ca",
 
78
  """This function returns the examples in the raw (text) form."""
79
  logger.info("generating examples from = %s", filepath)
80
  with open(filepath, encoding="utf-8") as f:
81
+ wikicat_ca = json.load(f)
82
+ for id_, article in enumerate(wikicat_ca["data"]):
83
  text = article["sentence"]
84
  label = article["label"]
85
  yield id_, {