🐸STT - The deep learning toolkit for Speech-to-Text. Training and deploying STT models has never been so easy.
Mozilla Public License 2.0
2.23k
stars
270
forks
source link
Bug: Scorer.fill_dictiomary() Python function throws SWIG exception #2305
Open
comodoro opened 1 year ago
Python SWIG binding for the funczion
Scorer::fill_dictionary
does not work (it did in the old Mozilla code).I am trying to make a fork of Mozilla DSAlign work with custom language models and got stuck on line https://github.com/comodoro/STT-align/blob/b5ef6f81fdb4b608a6cf2ba09f7d35a10f39ce25/align/generate_package.py#L74.
To Reproduce Steps to reproduce the behavior: Import Scorer from
coqui_stt_ctcdecoder
and try to runscorer.fill_dictionary
In my case the error wasExpected behavior The function works same as in the C++ code on a list or maybe set.
Environment (please complete the following information):
Additional context I had posted it as a SO question: https://stackoverflow.com/questions/73900661/using-swig-python-wrapper-argument-2-of-type-stdunordered-set-stdstring. As I understand it, a templare needs to be added to swigwrapper.i