whisper.cpp/bindings/java/src
ulatekh c8eeb93a6a
whisper : suppress tokens with a regex (#1997)
* Allow a regular expression to describe tokens to suppress.

Example: --suppress-tokens-re "[,\.]|[ ]?[0-9]+" will suppress commas, periods, and numeric tokens.

Technique inspired by https://github.com/openai/whisper/discussions/1041

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>

* Blind change to fix Java test.

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2024-04-09 18:27:28 +03:00
..
main/java/io/github/ggerganov/whispercpp whisper : suppress tokens with a regex (#1997) 2024-04-09 18:27:28 +03:00
test/java/io/github/ggerganov/whispercpp java : fix test (#1492) 2023-11-15 17:42:53 +02:00