remove utf8 encoding
Browse files
casum.py
CHANGED
|
@@ -75,7 +75,7 @@ class CaSum(datasets.GeneratorBasedBuilder):
|
|
| 75 |
def _generate_examples(self, filepath):
|
| 76 |
"""This function returns the examples in the raw (text) form."""
|
| 77 |
logger.info("generating examples from = %s", filepath)
|
| 78 |
-
with open(filepath
|
| 79 |
for id_, row in enumerate(f):
|
| 80 |
article = json.loads(row)
|
| 81 |
text = article['text']
|
|
|
|
| 75 |
def _generate_examples(self, filepath):
|
| 76 |
"""This function returns the examples in the raw (text) form."""
|
| 77 |
logger.info("generating examples from = %s", filepath)
|
| 78 |
+
with open(filepath) as f:
|
| 79 |
for id_, row in enumerate(f):
|
| 80 |
article = json.loads(row)
|
| 81 |
text = article['text']
|