Datasets:
Tasks:
Summarization
Modalities:
Text
Formats:
json
Languages:
Catalan
Size:
10K - 100K
ArXiv:
License:
remove utf8 encoding
Browse files- vilasum.py +1 -1
vilasum.py
CHANGED
@@ -69,7 +69,7 @@ class VilaSum(datasets.GeneratorBasedBuilder):
|
|
69 |
def _generate_examples(self, filepath):
|
70 |
"""This function returns the examples in the raw (text) form."""
|
71 |
logger.info("generating examples from = %s", filepath)
|
72 |
-
with open(filepath
|
73 |
for id_, row in enumerate(f):
|
74 |
article = json.loads(row)
|
75 |
text = article['text']
|
|
|
69 |
def _generate_examples(self, filepath):
|
70 |
"""This function returns the examples in the raw (text) form."""
|
71 |
logger.info("generating examples from = %s", filepath)
|
72 |
+
with open(filepath) as f:
|
73 |
for id_, row in enumerate(f):
|
74 |
article = json.loads(row)
|
75 |
text = article['text']
|