Datasets:
Tasks:
Token Classification
Sub-tasks:
part-of-speech
Languages:
Portuguese
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- mac_morpho.py +4 -2
mac_morpho.py
CHANGED
@@ -16,13 +16,15 @@
|
|
16 |
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
-
import logging
|
20 |
import os
|
21 |
import re
|
22 |
|
23 |
import datasets
|
24 |
|
25 |
|
|
|
|
|
|
|
26 |
_CITATION = """
|
27 |
@article{fonseca2015evaluating,
|
28 |
title={Evaluating word embeddings and a revised corpus for part-of-speech tagging in Portuguese},
|
@@ -144,7 +146,7 @@ class MacMorpho(datasets.GeneratorBasedBuilder):
|
|
144 |
|
145 |
def _generate_examples(self, filepath, split):
|
146 |
""" Yields examples. """
|
147 |
-
|
148 |
|
149 |
with open(filepath, "r", encoding="utf-8") as f:
|
150 |
|
|
|
16 |
|
17 |
from __future__ import absolute_import, division, print_function
|
18 |
|
|
|
19 |
import os
|
20 |
import re
|
21 |
|
22 |
import datasets
|
23 |
|
24 |
|
25 |
+
logger = datasets.logging.get_logger(__name__)
|
26 |
+
|
27 |
+
|
28 |
_CITATION = """
|
29 |
@article{fonseca2015evaluating,
|
30 |
title={Evaluating word embeddings and a revised corpus for part-of-speech tagging in Portuguese},
|
|
|
146 |
|
147 |
def _generate_examples(self, filepath, split):
|
148 |
""" Yields examples. """
|
149 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
150 |
|
151 |
with open(filepath, "r", encoding="utf-8") as f:
|
152 |
|