]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
examples : add --print-confidence option to cli (whisper/3150)
authorDaniel Bevenius <redacted>
Wed, 14 May 2025 17:21:48 +0000 (19:21 +0200)
committerGeorgi Gerganov <redacted>
Tue, 27 May 2025 15:04:10 +0000 (18:04 +0300)
commit1ec637d56251638e45ab0e1da4d93ea9b8a6a072
treec719bd28810b8e6f12f06672bdacf447f2aa4691
parenta86db45563107d4bf69e31cb0f0e40a79399ee1b
examples : add --print-confidence option to cli (whisper/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/common.h