Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Align_one Not supporting csv format #859

Open
aristosp opened this issue Dec 19, 2024 · 0 comments
Open

[BUG] Align_one Not supporting csv format #859

aristosp opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels

Comments

@aristosp
Copy link

Debugging checklist

[x] Have you read the troubleshooting page (https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/troubleshooting.html) and searched the documentation to ensure that your issue is not addressed there?
[x] Have you updated to latest MFA version (check https://montreal-forced-aligner.readthedocs.io/en/latest/changelog/changelog_3.0.html)? What is the output of mfa version?
[x] Have you tried rerunning the command with the --clean flag?

Describe the issue
When using align_one, while in the documentation it is stated that csv output format is supported, in the end there is an error claiming that csv output is not supported.

For Reproducing your issue
Please fill out the following:

  1. Corpus structure
    • What language is the corpus in? English
    • How many files/speakers? One file, one speaker
    • Are you using lab files or TextGrid files for input? Lab files for text, wav for audio
  2. Dictionary
    • Are you using a dictionary from MFA? If so, which one? english_us_arpa
    • If it's a custom dictionary, what is the phoneset?
  3. Acoustic model
    • If you're using an acoustic model, is it one download through MFA? If so, which one? english_us_arpa
    • If it's a model you've trained, what data was it trained on?

Log file
Please attach the log file for the run that encountered an error (by default these will be stored in ~/Documents/MFA).

Desktop (please complete the following information):

  • OS: Linux
  • Version Ubuntu 22.04
  • Setup on a conda environment with python 3.8.2

Additional context

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/aristosp/anaconda3/envs/avhubert2/bin/mfa", line 10, in <module>
    sys.exit(mfa_cli())
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/rich_click/rich_command.py", line 367, in __call__
    return super().__call__(*args, **kwargs)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/rich_click/rich_command.py", line 152, in main
    rv = self.invoke(ctx)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/montreal_forced_aligner/command_line/align_one.py", line 196, in align_one_cli
    file_ctm.export_textgrid(
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/kalpy/gmm/data.py", line 188, in export_textgrid
    tg.save(
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/praatio/data_classes/textgrid.py", line 482, in save
    utils.validateOption("format", format, TextgridFormats)
  File "/home/aristosp/anaconda3/envs/avhubert2/lib/python3.8/site-packages/praatio/utilities/utils.py", line 84, in validateOption
    raise errors.WrongOption(variableName, value, optionClass.validOptions)
praatio.utilities.errors.WrongOption: For argument 'format' was given the value 'csv'. However, expected one of [long_textgrid, short_textgrid, json, textgrid_json]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants