Closed callzhang closed 3 years ago
After debugging it turned out that I didn't have java installed. Java is a rare language for machine learning tasks. I suggest the author to add detection on java.(otherwise it will silently return empty string on exec_via_temp
function.
Thanks for pointing this out - in fairness, the README does say:
you will need 64 bit Java installed and available on your path (see details below)
And this is noted in the Requirements section as well. I'd put in the warning in the code, but a better solution is probably to switch over to a native Python based parser, I'll open an issue for that.
Thanks Amir. You are right. I knew that it requires java. But I didn't know if I have java in my machine. Normally people expect an exception thrown when something is missing. So I did a test run and it didn't raise any flag so I assume that I have java installed.
Anyway, I used the nlp
function in the code to integrate the process with google ASR service. In order to do that I commented out the code in __init__.py
file to be able to import the .py file.
When executing this
python3 -m hebpipe xxx.mp3.txt
command, I have encounteredIndexError
. Can you please help?