Closed Lorenzoncina closed 10 months ago
You need transformers==4.25.1, they had Trie there:
https://github.com/huggingface/transformers/blob/v4.25.1/src/transformers/tokenization_utils.py#L51
other version might be broken
Let us know if you have other questions
Hello. I'm trying to use the puncutation and case restoration model trained using https://github.com/benob/recasepunc and dowloaded here: https://alphacephei.com/vosk/models/vosk-recasepunc-ru-0.22.zip
I can use the English model but the russian and german ones fails when running the following command:
python3 recasepunc.py predict checkpoint < de-test.txt > output.txt
I get the following error:
It seems a dependency issue, maybe the version of some package I've installed in my eviroment is outdated. Anyone has an idea?