Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
SamAdamDay commited on
Commit
5c6e5ca
·
1 Parent(s): 6357dc7

Update wiki_toxic.py

Browse files
Files changed (1) hide show
  1. wiki_toxic.py +7 -2
wiki_toxic.py CHANGED
@@ -34,7 +34,12 @@ _HOMEPAGE = "https://www.kaggle.com/competitions/jigsaw-toxic-comment-classifica
34
  # TODO: Add the licence for the dataset here if you can find it
35
  _LICENSE = ""
36
 
37
- _URL = "https://huggingface.co/datasets/OxAISH-AL-LLM/wiki_toxic/resolve/main/"
 
 
 
 
 
38
 
39
 
40
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
@@ -72,7 +77,7 @@ class WikiToxic(datasets.GeneratorBasedBuilder):
72
  )
73
 
74
  def _split_generators(self, dl_manager):
75
- data_dir = dl_manager.download_and_extract(_URL)
76
  return [
77
  datasets.SplitGenerator(
78
  name=datasets.Split.TRAIN,
 
34
  # TODO: Add the licence for the dataset here if you can find it
35
  _LICENSE = ""
36
 
37
+ _URLS = {
38
+ "train": "train.csv",
39
+ "validation": "validation.csv",
40
+ "test": "test.csv",
41
+ "balanced_train": "balanced_train.csv",
42
+ }
43
 
44
 
45
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
 
77
  )
78
 
79
  def _split_generators(self, dl_manager):
80
+ data_dir = dl_manager.download_and_extract(_URLS)
81
  return [
82
  datasets.SplitGenerator(
83
  name=datasets.Split.TRAIN,