ggml-org/whisper.cpp

Specialized vocabulary

Open

#235 opened on Dec 8, 2022

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C++ (5,535 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (49,693 stars)
PR merge metrics
 (Avg merge 5d 20h) (36 merged PRs in 30d)

Description

I am interested in using the streaming tool for a very specialized context (radiology dictation), which uses an esoteric and relatively restricted vocabulary (i.e. high likelihood of words like "hyperpneumatization" or "temporooccipital", but never common words like "book" or "spoon"). I have seen references in the whisper documentation to an initial_prompt option to steer the model towards certain terms, but I am not sure if this is feasible to pass in a relatively large corpus of high likelihood, but generally uncommon, words.

In the standard configuration, accuracy for some radiology reports I've tested is fairly poor, preferring more common words over the correct uncommon word. I wonder if anyone has thoughts about this problem.

Contributor guide