mayank-git-hub / ETE-Speech-Recognition

Implementation of Hybrid CTC/Attention Architecture for End-to-End Speech Recognition in pure python and PyTorch
Apache License 2.0
26 stars 2 forks source link

Not found: unknown field name '/cache/unigram_model/unigram' in TrainerSpec #7

Closed javaCrocodile closed 2 years ago

javaCrocodile commented 2 years ago

Hello,I met an error "Not found: unknown field name '/cache/unigram_model/unigram' in TrainerSpec" when I run 'python main.py train'. It ouccred when the program ran to 'create_unigram_model()' , and I guessed there is a file named 'unigram' missing. Can you please tell me how to solve the problem?

mayank-git-hub commented 2 years ago

Hello @hulk12321 ,

In specificConfig.py, set the path to where you would want to save the unigram model in "cache_dir". Then run -

python main.py genUnigram

Please follow the steps in the docs to train your model.