annieske commited on
Commit
780e8cd
·
1 Parent(s): 913821e

Update suomi24_toxicity_pred.py

Browse files
Files changed (1) hide show
  1. suomi24_toxicity_pred.py +1 -1
suomi24_toxicity_pred.py CHANGED
@@ -65,7 +65,7 @@ class Suomi24ToxicityPred(datasets.GeneratorBasedBuilder):
65
  # The key is not important, it's more here for legacy reason (legacy from tfds)
66
 
67
  # read the tsv file
68
- with open(filepath, "rt", encoding="utf-8") as f:
69
  data = f.readlines()
70
  data = data[1:]
71
  for i in range(len(data)):
 
65
  # The key is not important, it's more here for legacy reason (legacy from tfds)
66
 
67
  # read the tsv file
68
+ with open(filepath, "r") as f:
69
  data = f.readlines()
70
  data = data[1:]
71
  for i in range(len(data)):