Closed treya-lin closed 1 year ago
same problem
@treya-lin I fixed it in https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/pull/634
@treya-lin I fixed it in #634
Heyy Thanks!
@lifeiteng It seems that the issue with the optional parameter --num_pronunciations is still not solver in the current dev version. Could it be?
Debugging checklist
[ ] Have you updated to latest MFA version? yes, mfa version 2.2.7 installed from source with commands
[ ] Have you tried rerunning the command with the
--clean
flag? yes I didDescribe the issue I am following the guide in https://montreal-forced-aligner.readthedocs.io/en/latest/first_steps/index.html#first-steps to generate sounds for oov words and add them to the dictionary. I am just doing testing to get familiar with mfa so I only used 2 audios and the corresponding transcriptions.
I used the g2p model to transcribe OOV with command
There is only one word to be transcribe actually, and it generated a file
test_g2pped.txt
with three entries of potential pronunciations.Afterwards, I tried to add it back to the original dictionary with command ( adding or removing
--clean
andno_use_mp
flags have no effect on this error)but it is not adding them to the dictionary properly, giving error message
DETAIL: Key (id)=(43400) already exists.
Does it mean it doesn't accept words with multiple sounds? That is unlikely isn it? The original dictionary have words with multiple sounds too. The full log is pasted below.For Reproducing your issue Please fill out the following:
Turkish
Yes.
Log file
Desktop (please complete the following information):
Linux
Linux version 4.15.0-142-generic (buildd@lgw01-amd64-039) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12))
Additional context Besides, it seems for this version (2.2.7),
mfa g2p
does not have optional argument of--num_pronunciations
so I am not sure how to specify the number of wanted pronunciations?So any idea what caused this
duplicate key value violates unique constraint
error and how to fix it? Many thanks!