Skip to content
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

Merged
merged 21 commits into from
Sep 13, 2024

Conversation

shawl336
Copy link
Contributor

changed the code by the previous suggestions,
formatted the code with clang-format to avoid style-check failure

xiao and others added 10 commits September 8, 2024 16:33
…ther than from external files)

currently, only supported OnlineTransducer models
… test streaming models loading tokens and hotworks from buffered strings directly
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
Copy link
Collaborator

@csukuangfj csukuangfj left a 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.

sherpa-onnx/c-api/c-api.cc Outdated Show resolved Hide resolved
sherpa-onnx/csrc/online-recognizer-transducer-impl.h Outdated Show resolved Hide resolved
sherpa-onnx/csrc/online-recognizer-transducer-impl.h Outdated Show resolved Hide resolved
sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h Outdated Show resolved Hide resolved
sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h Outdated Show resolved Hide resolved
sherpa-onnx/csrc/online-recognizer.h Outdated Show resolved Hide resolved
@shawl336
Copy link
Contributor Author

Thanks for your suggestions, I have learned a lot from such a great open source project

xiao and others added 2 commits September 12, 2024 16:28
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
@csukuangfj
Copy link
Collaborator

please leave a message when you think it is ready for merge.

@shawl336
Copy link
Contributor Author

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

@csukuangfj
Copy link
Collaborator

Thank you for your contribution!

@csukuangfj csukuangfj merged commit 65cfa75 into k2-fsa:master Sep 13, 2024
106 of 202 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants