system HF staff commited on
Commit
fe1fbea
1 Parent(s): 34582fa

Update files from the datasets library (from 1.6.1)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.6.1

Files changed (1) hide show
  1. hate_offensive.py +2 -2
hate_offensive.py CHANGED
@@ -41,7 +41,7 @@ _URLs = "https://github.com/t-davidson/hate-speech-and-offensive-language/raw/ma
41
 
42
 
43
  class HateOffensive(datasets.GeneratorBasedBuilder):
44
- """Automated Hate Speech Detection and the Problem of Offensive Language """
45
 
46
  VERSION = datasets.Version("1.1.0")
47
 
@@ -70,7 +70,7 @@ class HateOffensive(datasets.GeneratorBasedBuilder):
70
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(data_dir)})]
71
 
72
  def _generate_examples(self, filepath):
73
- """ Yields examples. """
74
  with open(filepath, encoding="utf-8") as csv_file:
75
  csv_reader = csv.reader(
76
  csv_file, lineterminator="\n", delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True
 
41
 
42
 
43
  class HateOffensive(datasets.GeneratorBasedBuilder):
44
+ """Automated Hate Speech Detection and the Problem of Offensive Language"""
45
 
46
  VERSION = datasets.Version("1.1.0")
47
 
 
70
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(data_dir)})]
71
 
72
  def _generate_examples(self, filepath):
73
+ """Yields examples."""
74
  with open(filepath, encoding="utf-8") as csv_file:
75
  csv_reader = csv.reader(
76
  csv_file, lineterminator="\n", delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True