An option to FinalResult which would skip all the deallocations
- Lingua principale
- Jupyter Notebook
- Stelle
- 15.1k
- Fork
- 1.8k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This is really just a feature suggestion to add batch mode segment based decoding to the Recognizer.
Implementing this myself, I ran into the following problems:
* When you call FinalResults() to get the final results the call deallocates a bunch of things including the decoder which has to be reinitialized now between each segment adding unnecessary overhead.
* There is no way to call InitState() which means word offset times are adjust by however much data you have decoded up to that point.
I would suggest adding an option to FinalResult() which would skip all the deallocations and an option to Result() and FinalResult() which does not adjust start/end times to support batch mode processing. It would then be up to the user to periodically reallocate the decoder (for example to avoid memory leaks etc.).
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.