George
commited on
Commit
•
aa1ed55
1
Parent(s):
46c4bd7
add encoding for csv pd
Browse files
CNPM.py
CHANGED
@@ -69,7 +69,8 @@ class CNPM(datasets.GeneratorBasedBuilder):
|
|
69 |
label_file = dl_manager.download(_URLS['label'])
|
70 |
|
71 |
files = dl_manager.iter_files([audio_files])
|
72 |
-
labels = pd.read_csv(
|
|
|
73 |
|
74 |
dataset = []
|
75 |
for epath in files:
|
|
|
69 |
label_file = dl_manager.download(_URLS['label'])
|
70 |
|
71 |
files = dl_manager.iter_files([audio_files])
|
72 |
+
labels = pd.read_csv(
|
73 |
+
label_file, index_col='File_Name', encoding='utf-8')
|
74 |
|
75 |
dataset = []
|
76 |
for epath in files:
|