MontrealCorpusTools / Montreal-Forced-Aligner

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

[BUG] TypeError: __init__() got an unexpected keyword argument 'two_models' #742

Closed hantien2002 closed 5 months ago

hantien2002 commented 5 months ago

Hi, here are all the command line I have run: conda create -n mfa-test python=3.8 --yes conda activate mfa-test conda install -c conda-forge montreal-forced-aligner mfa model download acoustic english_us_arpa mfa model download dictionary english_us_arpa

then I run: mfa validate ~/mfa_data/my_corpus english_us_arpa english_us_arpa it passed.

then I run: mfa align ~/mfa_data/my_corpus english_us_arpa english_us_arpa ~/mfa_data/my_corpus_aligned it gave me the error.

error1 error2
gadese commented 5 months ago

@mmcauliffe

This isn't a MFA issue. Version 0.6.0 of Kalpy changed the function signature for the arguments of FmllrComputer but MFA wasn't updated accordingly.

@hantien2002 Until MFA is updated, you can set the kalpy version to 0.5.9 in your conda env to ignore this issue.

hantien2002 commented 5 months ago

@gadese Thank you so much! It works perfect now!

HildaNya commented 5 months ago

Follow up question: by setting kalpy to 0.5.9, do you mean removing the latest kalpy?

hantien2002 commented 5 months ago

I just did "conda install kalpy=0.5.9", and it works for me.

So after this, "conda list kalpy" should return something like: kalpy 0.5.9