Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Portuguese
Size:
10K<n<100K
Tags:
legal
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- lener_br.py +4 -3
lener_br.py
CHANGED
@@ -16,11 +16,12 @@
|
|
16 |
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
-
import logging
|
20 |
-
|
21 |
import datasets
|
22 |
|
23 |
|
|
|
|
|
|
|
24 |
_CITATION = """
|
25 |
@inproceedings{luz_etal_propor2018,
|
26 |
author = {Pedro H. {Luz de Araujo} and Te\'{o}filo E. {de Campos} and
|
@@ -128,7 +129,7 @@ class LenerBr(datasets.GeneratorBasedBuilder):
|
|
128 |
def _generate_examples(self, filepath, split):
|
129 |
""" Yields examples. """
|
130 |
|
131 |
-
|
132 |
|
133 |
with open(filepath, encoding="utf-8") as f:
|
134 |
|
|
|
16 |
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
|
|
|
|
19 |
import datasets
|
20 |
|
21 |
|
22 |
+
logger = datasets.logging.get_logger(__name__)
|
23 |
+
|
24 |
+
|
25 |
_CITATION = """
|
26 |
@inproceedings{luz_etal_propor2018,
|
27 |
author = {Pedro H. {Luz de Araujo} and Te\'{o}filo E. {de Campos} and
|
|
|
129 |
def _generate_examples(self, filepath, split):
|
130 |
""" Yields examples. """
|
131 |
|
132 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
133 |
|
134 |
with open(filepath, encoding="utf-8") as f:
|
135 |
|