prosodylab / Prosodylab-Aligner

Python interface for forced audio alignment using HTK and SoX
http://prosodylab.org/tools/aligner/
MIT License
331 stars 77 forks source link

No file or directory "HDMan" error #87

Closed atmacafurkan closed 3 years ago

atmacafurkan commented 3 years ago

Hi! I am trying to train my own model. I have the X.dict, X.yaml files and .wav files with .lab correspondents for the words. When I try this code: "python3 -m aligner -c X.yaml -d X.dict -e 10 -t X_sounds/ -w X-mod.zip" I receive the following error prompt: FileNotFoundError: [Errno 2] No such file or directory: 'HDMan': 'HDMan'

(my words are in small caps both in the dictionary and the .lab files) Am I doing sth wrong?

kylebgorman commented 3 years ago

You have not successfully installed the HTK dependency, it seems.

See the installation instructions in the README and please update this thread with your success or any other problems you encounter.

On Sat, Oct 3, 2020 at 8:45 AM Furkan Atmaca notifications@github.com wrote:

Hi!

I am trying to train my own model. I have the X.dict, X.yaml files and .wav files with .lab correspondents for the words. When I try this code:

"python3 -m aligner -c X.yaml -d X.dict -e 10 -t X_sounds/ -w X-mod.zip"

I receive the following error prompt:

FileNotFoundError: [Errno 2] No such file or directory: 'HDMan': 'HDMan'

(my words are in small caps both in the dictionary and the .lab files)

Am I doing sth wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OJODSZUMRRIVQHR7XLSI4MHPANCNFSM4SCUMCYA .

atmacafurkan commented 3 years ago

I dont know if this belongs here but installation of HTK 3.4.1 (current last stable version) gives the following error: "Makefile:111: recipe for target 'hlmtools' failed" I am following the instructions given here: http://htk.eng.cam.ac.uk/docs/inst-nix.shtml

kylebgorman commented 3 years ago

Can you try the installation instructions on our README instead? You probably want to disable the installation of hlmtools, actually, as it’s not needed; our README has commands for that.

On Sat, Oct 3, 2020 at 11:20 AM Furkan Atmaca notifications@github.com wrote:

I dont know if this belongs here but installation of HTK 3.4.1 (current last stable version) gives the following error:

"Makefile:111: recipe for target 'hlmtools' failed"

I am following the instructions given here: http://htk.eng.cam.ac.uk/docs/inst-nix.shtml

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/87#issuecomment-703119610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OIQQXGPELXAPKDJZELSI46LTANCNFSM4SCUMCYA .

atmacafurkan commented 3 years ago

Can you try the installation instructions on our README instead? You probably want to disable the installation of hlmtools, actually, as it’s not needed; our README has commands for that. On Sat, Oct 3, 2020 at 11:20 AM Furkan Atmaca @.***> wrote: I dont know if this belongs here but installation of HTK 3.4.1 (current last stable version) gives the following error: "Makefile:111: recipe for target 'hlmtools' failed" I am following the instructions given here: http://htk.eng.cam.ac.uk/docs/inst-nix.shtml — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#87 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OIQQXGPELXAPKDJZELSI46LTANCNFSM4SCUMCYA .

I have followed the steps in Prosodylab-Aligner README, it says "(This would take a fe minutes)" but in fact it does not in my computer. I get the following message: (cd HTKTools && make all) \ || case "-j --jobserver-fds=3,4" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' (cd HTKTools && make install) \ || case "-j --jobserver-fds=3,4" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' if [ ! -d /usr/local/bin ] ; then mkdir /usr/local/bin ; fi for program in HBuild HCompV HCopy HDMan HERest HHEd HInit HLEd HList HLRescore HLStats HMMIRest HParse HQuant HRest HResults HSGen HSmooth HVite ; do /usr/bin/install -c -m 755 ${program} /usr/local/bin ; done make[1]: Leaving directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' furkan is my username

kylebgorman commented 3 years ago

That's because you already compiled all the tools you actually need as part of a previous step. (but the commands in the README disable compilation of hlmtools, which you don't need anyways.) That is just what it prints when there's no additional work to do...so that's a successful installation. If you followed the instructions on the README, then, you should now have a working installation of HTK.

On Sat, Oct 3, 2020 at 12:49 PM Furkan Atmaca notifications@github.com wrote:

Can you try the installation instructions on our README instead? You probably want to disable the installation of hlmtools, actually, as it’s not needed; our README has commands for that. … <#m3769079499219547669> On Sat, Oct 3, 2020 at 11:20 AM Furkan Atmaca @.***> wrote: I dont know if this belongs here but installation of HTK 3.4.1 (current last stable version) gives the following error: "Makefile:111: recipe for target 'hlmtools' failed" I am following the instructions given here: http://htk.eng.cam.ac.uk/docs/inst-nix.shtml — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#87 (comment) https://github.com/prosodylab/Prosodylab-Aligner/issues/87#issuecomment-703119610>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OIQQXGPELXAPKDJZELSI46LTANCNFSM4SCUMCYA .

I have followed the steps in Prosodylab-Aligner README, it says "(This would take a fe minutes)" but in fact it does not in my computer. I get the following message: (cd HTKTools && make all) \ || case "-j --jobserver-fds=3,4" in k) fail=yes;; ) exit 1;; esac; make[1]: Entering directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' (cd HTKTools && make install) \ || case "-j --jobserver-fds=3,4" in k) fail=yes;; ) exit 1;; esac; make[1]: Entering directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' if [ ! -d /usr/local/bin ] ; then mkdir /usr/local/bin ; fi for program in HBuild HCompV HCopy HDMan HERest HHEd HInit HLEd HList HLRescore HLStats HMMIRest HParse HQuant HRest HResults HSGen HSmooth HVite ; do /usr/bin/install -c -m 755 ${program} /usr/local/bin ; done make[1]: Leaving directory '/home/furkan/Downloads/Project-Align/htk/HTKTools' furkan is my username

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/87#issuecomment-703131836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OPASEHXTPXBPC76YP3SI5I3LANCNFSM4SCUMCYA .

atmacafurkan commented 3 years ago

I am not sure if it is installed properly, or I have a problem with my files but now I receive the following error: Command '['HDMan', '-m', '-g', '/tmp/tmpjfagifd9/temp', '-w', '/tmp/tmpjfagifd9/words', '-n', '/tmp/tmpjfagifd9/phons', '/tmp/tmpjfagifd9/taskdict', 'turkish.dict']' returned non-zero exit status 172.

kylebgorman commented 3 years ago

It's at least running, but failing.

If you can provide me with a full, but small, reproducible example, I would be happy to take a look. It is probably a data formatting error.

On Mon, Oct 5, 2020 at 12:22 PM Furkan Atmaca notifications@github.com wrote:

I am not sure if it is installed properly, or I have a problem with my files but now I receive the following error: Command '['HDMan', '-m', '-g', '/tmp/tmpjfagifd9/temp', '-w', '/tmp/tmpjfagifd9/words', '-n', '/tmp/tmpjfagifd9/phons', '/tmp/tmpjfagifd9/taskdict', 'turkish.dict']' returned non-zero exit status 172.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/87#issuecomment-703739394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABG4OL3U2YJK3FB4N372UTSJHXFJANCNFSM4SCUMCYA .

atmacafurkan commented 3 years ago

I have fixed the errors aforementioned. Just as a note for somebody else: If you form a dictionary that has non-english characters, convert the word characters to English characters. As long as the phonemic representation is not altered it should be fine.