]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : add --print-confidence option to cli (#3150)
authorDaniel Bevenius <redacted>
Wed, 14 May 2025 17:21:48 +0000 (19:21 +0200)
committerGitHub <redacted>
Wed, 14 May 2025 17:21:48 +0000 (19:21 +0200)
commitf389d7e3e56bbbfec49fd333551927a0fcbb7213
treef7e50284be763c7c5c30f5686d1eccbe5cd1ea1c
parent96d791ae61b4aff99e6df2466914143619d400dc
examples : add --print-confidence option to cli (#3150)

* examples : add --print-confidence option to cli

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: https://github.com/ggml-org/whisper.cpp/issues/3135
examples/cli/cli.cpp
examples/common.h