kmyoo commited on
Commit
882add6
1 Parent(s): 3aa1ffa

Fix a bug introduced by huggingface online editor

Browse files

backslash in text files are replaced with double backslashes when editing

Files changed (1) hide show
  1. 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("\\t")
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()}