MontrealCorpusTools / Montreal-Forced-Aligner

Command line utility for forced alignment using Kaldi
https://montrealcorpustools.github.io/Montreal-Forced-Aligner/
MIT License
1.29k stars 242 forks source link

[BUG] mfa g2p --num_pronuncations raises an error #670

Closed joseangl closed 1 year ago

joseangl commented 1 year ago

Debugging checklist

[X] Have you updated to latest MFA version? [X] Have you tried rerunning the command with the --clean flag?

Describe the issue Running mfa g2p with the --num_pronunciations 3 option results in an error.

Command: mfa g2p --clean --num_pronunciations 3 ./audios spanish_spain_mfa new_dict_es_ES_NP3.txt

Output: Usage: mfa g2p [OPTIONS] INPUT_PATH G2P_MODEL_PATH OUTPUT_PATH Error: Invalid value for 'INPUT_PATH': Path '--num_pronunciations' does not exist.

For Reproducing your issue Please fill out the following:

  1. Corpus structure
    • What language is the corpus in? Spanish (Spain)
    • How many files/speakers? 7 files/7 speakers.
    • Are you using lab files or TextGrid files for input? Lab files
  2. Dictionary
    • Are you using a dictionary from MFA? If so, which one? No
    • If it's a custom dictionary, what is the phoneset? No
  3. Acoustic model
    • If you're using an acoustic model, is it one download through MFA? If so, which one? Yes, spanish_mfa
    • If it's a model you've trained, what data was it trained on?

Desktop (please complete the following information):