Fix a bug introduced by huggingface online editor
Browse filesbackslash in text files are replaced with double backslashes when editing
- klue-tc-tsv.py +1 -1
klue-tc-tsv.py
CHANGED
@@ -51,5 +51,5 @@ class KlueTC(datasets.GeneratorBasedBuilder):
|
|
51 |
def _generate_examples(self, filepath):
|
52 |
with open(filepath, "r", encoding='UTF-8') as f:
|
53 |
for idx, line in enumerate(f):
|
54 |
-
text, label = line.split("
|
55 |
yield idx, {"text": text.strip(), "label": label.strip()}
|
|
|
51 |
def _generate_examples(self, filepath):
|
52 |
with open(filepath, "r", encoding='UTF-8') as f:
|
53 |
for idx, line in enumerate(f):
|
54 |
+
text, label = line.split("\t")
|
55 |
yield idx, {"text": text.strip(), "label": label.strip()}
|