edwjin commited on
Commit
6457a8e
·
verified ·
1 Parent(s): 5ad679c

Update dataset.py

Browse files
Files changed (1) hide show
  1. dataset.py +1 -1
dataset.py CHANGED
@@ -24,7 +24,7 @@ class SpeechesClassificationDataset(Dataset):
24
  if not os.path.exists(file_path):
25
  raise FileNotFoundError(f"The file {file_path} does not exist.")
26
 
27
- with open(file_path, 'r', encoding='utf-8') as file:
28
  for line in file:
29
  label, text = line.strip().split('\t')
30
 
 
24
  if not os.path.exists(file_path):
25
  raise FileNotFoundError(f"The file {file_path} does not exist.")
26
 
27
+ with open(file_path, 'r', encoding='utf-16') as file:
28
  for line in file:
29
  label, text = line.strip().split('\t')
30