-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re-pull-request allow tokens and hotwords be loaded from buffered string driectly #1339
Conversation
…ther than from external files) currently, only supported OnlineTransducer models
… test streaming models loading tokens and hotworks from buffered strings directly
Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
2. rewrite some code to make it more readable 3. updated the c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c
… hotwords are read from files before being filled into buffers 2. updated the test yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Left some minor comments; otherwise, it looks good to me.
c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c
Outdated
Show resolved
Hide resolved
c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c
Outdated
Show resolved
Hide resolved
c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c
Outdated
Show resolved
Hide resolved
…api.c Co-authored-by: Fangjun Kuang <[email protected]>
…api.c Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
…api.c Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
Co-authored-by: Fangjun Kuang <[email protected]>
Thanks for your suggestions, I have learned a lot from such a great open source project |
1. tokens and hotwords buffers are freed once the recognizier creation is called 2. used ReadFile instead of read_file 3. fixed some other minor suggestions
Co-authored-by: Fangjun Kuang <[email protected]>
please leave a message when you think it is ready for merge. |
it is ready to merge, modifications on paraformers and ctc models are coming in the next commits |
Thank you for your contribution! |
changed the code by the previous suggestions,
formatted the code with clang-format to avoid style-check failure