Open meutbal opened 1 month ago
Its been a while since I've messed with this but try renaming the file without "-" or "_". If I remember correctly, we had that issue as well when we did it.
thanks! i finally got my textgrid files to work, so i can do it that way as well.
I cannot, for the life of me, succeed in getting the relabel_clean.py to work properly and generate a lab file. I'm testing it with just 1 audio file and the metadata file, which I've attached. after running through the steps you've outlined, I get the following error:
TypeError: decoding str is not supported
this is the full result in terminal:
/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py:105: DeprecationWarning: 'U' mode is deprecated ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')] Traceback (most recent call last): File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 624, in
main()
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 557, in main
relabel_module(exp_files, exp_cols, file_dir, format, old_dir, lang, dict)
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 306, in relabel_module
exp_files = get_exp_files(exp_file_list) # step 2
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 105, in get_exp_files
ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 105, in
ef = [x[:] for x in unicode_csv_reader(open(file, 'rU'), delimiter = '\t')]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 57, in unicode_csv_reader
yield [str(cell, 'utf-8') for cell in row]
File "/Users/kranken/miniforge3/envs/mfa_env_310/my_files/lab_workflow_wip/relabel_clean.py", line 57, in
yield [str(cell, 'utf-8') for cell in row]
TypeError: decoding str is not supported
files:
tab-delimited_experiment_file.csv wav: https://drive.google.com/file/d/1lfG2H7A8R2-_IDmPWz53aN9lbNpb2Z23/view?usp=sharing
any idea what I'm doing wrong? I'm really at a loss. I've been troubleshooting to test mfa for 2 days straight and can't even get past this step.
many thanks,
meut