Failed to create recognizer
T1duS opened this issue ยท 13 comments
Could you please post the content of the log files which were created too?
[On the sidenote : we can do much better with the error messages]
@T1duS The one mentioned in the 'logpath' in terminal output. :)
From your logs
ERROR: "dict.c", line 275: Failed to open dictionary file 'tempFiles/dict/complete.dict' for reading: No such file or directory
CCAligner doesn't find dictionary to work with. Also, from logs I can see that it did not even attempt to create any grammar files.
10-02 19:19:15][Verbose] grammarType : 9
tells me that you're using --generate-grammar no
.
If you do not want to generate grammar files, you need to have them already and then pass to CCAligner using parameters mentioned under the heading Grammar, Language Model related parameters in the readme.
It's recommended to let it generate grammar files on its own unless you have them prepared already.
Moreover regarding dependencies, I see that some dependencies have made breaking changes. I'd recommend to install all the dependencies from the mirror mentioned in the readme until the changes are reflected here (or maybe send a PR with the changes ๐)
Feel free to re-open this issue, if it doesn't solve your problem , or open another one if you encounter something else! ๐
I have tried to run it without --generate-grammar no, it's still giving the same error
Please post the logs and terminal output in that case :)
Oh, my bad, I tested without --generate-grammar no in my previous system, not in this one. Its working fine now thanks :D
@T1duS Great! ๐ Also, if you found out any missing information, feel free to update that by sending a PR! ๐
Missing information?
i'm having the same issue.
Im using the following command:
./ccaligner -wav ../test/data/goforward.wav -srt ../test/data/goforward.srt --generate-grammar no
With the provided test file of the repository.
The g2g setup.py test ran with success.
I cant get it work.
https://pastebin.com/Nbtyp6TW
Here is my log.
@joseamair Sorry for the super-late reply, if you're passing --generate-grammar no
, then you need to pass all the grammar files manually. If you want CCAligner to generate them for you, skip --generate-grammar
parameter.
Let me know if the docs help, and if not, how can I improve them.