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

Add swift online punctuation #1661

Merged
merged 2 commits into from
Dec 31, 2024
Merged

Add swift online punctuation #1661

merged 2 commits into from
Dec 31, 2024

Conversation

yujinqiu
Copy link
Contributor

Output result:

sh run-add-punctuations-online.sh
+ '[' '!' -d ../build-swift-macos ']'
+ '[' '!' -d ./sherpa-onnx-online-punct-en-2024-08-06 ']'
+ curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/punctuation-models/sherpa-onnx-online-punct-en-2024-08-06.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 29.2M  100 29.2M    0     0  2578k      0  0:00:11  0:00:11 --:--:-- 3205k
+ tar xvf sherpa-onnx-online-punct-en-2024-08-06.tar.bz2
x ./sherpa-onnx-online-punct-en-2024-08-06/
x ./sherpa-onnx-online-punct-en-2024-08-06/model.int8.onnx
x ./sherpa-onnx-online-punct-en-2024-08-06/README.md
x ./sherpa-onnx-online-punct-en-2024-08-06/model.onnx
x ./sherpa-onnx-online-punct-en-2024-08-06/bpe.vocab
+ rm sherpa-onnx-online-punct-en-2024-08-06.tar.bz2
+ '[' '!' -e ./add-punctuation-online ']'
+ swiftc -lc++ -I ../build-swift-macos/install/include -import-objc-header ./SherpaOnnx-Bridging-Header.h ./add-punctuation-online.swift ./SherpaOnnx.swift -L ../build-swift-macos/install/lib/ -l sherpa-onnx -l onnxruntime -o ./add-punctuation-online
+ strip ./add-punctuation-online
+ export DYLD_LIBRARY_PATH=/Users/knight/pool/1w/punctuation/sherpa-onnx/swift-api-examples/../build-swift-macos/install/lib:
+ DYLD_LIBRARY_PATH=/Users/knight/pool/1w/punctuation/sherpa-onnx/swift-api-examples/../build-swift-macos/install/lib:
+ ./add-punctuation-online

result is:
How are you? I am fine. Thank you.

result is:
The African blogosphere is rapidly expanding, bringing more voices online in the form of commentaries, opinions, analyses, rants, and poetry.

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.

Thank you!

Left some minor comments. Otherwise, it looks good to me.

sherpa-onnx/c-api/c-api.cc Outdated Show resolved Hide resolved
sherpa-onnx/c-api/c-api.cc Outdated Show resolved Hide resolved
sherpa-onnx/c-api/c-api.cc Outdated Show resolved Hide resolved
@yujinqiu yujinqiu requested a review from csukuangfj December 31, 2024 03:08
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.

Thank you for your contribution!

@csukuangfj csukuangfj merged commit 5c2cc48 into k2-fsa:master Dec 31, 2024
54 of 97 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