update
Browse files- UTS_Text.py +4 -1
UTS_Text.py
CHANGED
|
@@ -74,4 +74,7 @@ class UTSText(datasets.GeneratorBasedBuilder):
|
|
| 74 |
def _generate_examples(self, filepath):
|
| 75 |
with open(filepath, encoding="utf-8") as f:
|
| 76 |
for line in f:
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
def _generate_examples(self, filepath):
|
| 75 |
with open(filepath, encoding="utf-8") as f:
|
| 76 |
for line in f:
|
| 77 |
+
item = {
|
| 78 |
+
"text": line.strip()
|
| 79 |
+
}
|
| 80 |
+
yield item
|