Skip to content

examples : add --print-confidence option to cli #3150

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

danbev
Copy link
Member

@danbev danbev commented May 13, 2025

This commit adds a new command-line option --print-confidence to the whisper-cli. When enabled, this option prints the confidence level of each token in the transcribed text using ANSI formatting codes.

The confidence levels are represented using different styles:

main: confidence: highlighted (low confidence), underlined (medium), dim (high confidence)

Refs: #3135


Example of the output:

print-confidence

This commit adds a new command-line option `--print-confidence` to the
whisper-cli. When enabled, this option prints the confidence level of each
token in the transcribed text using ANSI formatting codes.

The confidence levels are represented using different styles:
```console
main: confidence: highlighted (low confidence), underlined (medium), dim (high confidence)
```

Refs: ggml-org#3135
Add check for print-special in print_confidence.
@danbev danbev marked this pull request as ready for review May 14, 2025 13:31
@danbev danbev merged commit f389d7e into ggml-org:master May 14, 2025
52 checks passed
@danbev danbev deleted the colorblind-support branch June 3, 2025 06:01
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