Datasets:

Multilinguality:
translation
Size Categories:
1K<n<10K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
2c955bf
1 Parent(s): a718372

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. europa_ecdc_tm.py +4 -2
europa_ecdc_tm.py CHANGED
@@ -16,13 +16,15 @@
16
 
17
  from __future__ import absolute_import, division, print_function
18
 
19
- import logging
20
  import os
21
  from xml.etree import ElementTree
22
 
23
  import datasets
24
 
25
 
 
 
 
26
  _CITATION = """\
27
  @Article{Steinberger2014,
28
  author={Steinberger, Ralf
@@ -185,7 +187,7 @@ class EuropaEcdcTM(datasets.GeneratorBasedBuilder):
185
  source_language,
186
  target_language,
187
  ):
188
- logging.info(f"⏳ Generating examples from = {filepath}")
189
  xml_element_tree = ElementTree.parse(filepath)
190
  xml_body_tag = xml_element_tree.getroot().find("body")
191
  assert xml_body_tag is not None, f"Invalid data: <body></body> tag not found in {filepath}"
16
 
17
  from __future__ import absolute_import, division, print_function
18
 
 
19
  import os
20
  from xml.etree import ElementTree
21
 
22
  import datasets
23
 
24
 
25
+ logger = datasets.logging.get_logger(__name__)
26
+
27
+
28
  _CITATION = """\
29
  @Article{Steinberger2014,
30
  author={Steinberger, Ralf
187
  source_language,
188
  target_language,
189
  ):
190
+ logger.info(f"⏳ Generating examples from = {filepath}")
191
  xml_element_tree = ElementTree.parse(filepath)
192
  xml_body_tag = xml_element_tree.getroot().find("body")
193
  assert xml_body_tag is not None, f"Invalid data: <body></body> tag not found in {filepath}"