Spaces:
Sleeping
Sleeping
Update dataset.py
Browse files- 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-
|
| 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 |
|