system HF staff commited on
Commit
3b60024
1 Parent(s): 6a1a2cc

Update files from the datasets library (from 1.4.0)

Browse files

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

Files changed (1) hide show
  1. ethos.py +4 -3
ethos.py CHANGED
@@ -2,13 +2,14 @@
2
 
3
  from __future__ import absolute_import, division, print_function
4
 
5
- import logging
6
-
7
  import pandas as pd
8
 
9
  import datasets
10
 
11
 
 
 
 
12
  _CITATION = """
13
  @misc{mollas2020ethos,
14
  title={ETHOS: an Online Hate Speech Detection Dataset},
@@ -53,7 +54,7 @@ class EthosConfig(datasets.BuilderConfig):
53
  elif variation.lower() == "multilabel":
54
  self.variation = "multilabel"
55
  else:
56
- logging.warning("Wrong variation. Could be either 'binary' or 'multilabel', using 'binary' instead.")
57
  self.variation = "binary"
58
  super(EthosConfig, self).__init__(**kwargs)
59
 
 
2
 
3
  from __future__ import absolute_import, division, print_function
4
 
 
 
5
  import pandas as pd
6
 
7
  import datasets
8
 
9
 
10
+ logger = datasets.logging.get_logger(__name__)
11
+
12
+
13
  _CITATION = """
14
  @misc{mollas2020ethos,
15
  title={ETHOS: an Online Hate Speech Detection Dataset},
 
54
  elif variation.lower() == "multilabel":
55
  self.variation = "multilabel"
56
  else:
57
+ logger.warning("Wrong variation. Could be either 'binary' or 'multilabel', using 'binary' instead.")
58
  self.variation = "binary"
59
  super(EthosConfig, self).__init__(**kwargs)
60