Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10M<n<100M
Language Creators:
found
Annotations Creators:
no-annotation
ArXiv:
License:
zlucia commited on
Commit
b1c409a
1 Parent(s): 88f467f

Set logging verbosity to INFO level

Browse files
Files changed (1) hide show
  1. pile-of-law.py +2 -1
pile-of-law.py CHANGED
@@ -11,6 +11,7 @@ except ImportError:
11
  import pylzma as xz
12
 
13
 
 
14
  logger = datasets.logging.get_logger(__name__)
15
 
16
 
@@ -254,7 +255,7 @@ class PileOfLaw(datasets.GeneratorBasedBuilder):
254
  """This function returns the examples in the raw (text) form by iterating on all the files."""
255
  id_ = 0
256
  for filepath in filepaths:
257
- logger.info("generating examples from = %s", filepath)
258
  try:
259
  with xz.open(open(filepath, "rb"), "rt", encoding="utf-8") as f:
260
  for line in f:
11
  import pylzma as xz
12
 
13
 
14
+ datasets.logging.set_verbosity_info()
15
  logger = datasets.logging.get_logger(__name__)
16
 
17
 
255
  """This function returns the examples in the raw (text) form by iterating on all the files."""
256
  id_ = 0
257
  for filepath in filepaths:
258
+ logger.info("Generating examples from = %s", filepath)
259
  try:
260
  with xz.open(open(filepath, "rb"), "rt", encoding="utf-8") as f:
261
  for line in f: