Skip to content
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

Filter out non_speech_tokens in suppressed tokens #898

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

jordimas
Copy link
Contributor

@jordimas jordimas commented Jul 3, 2024

This matches the implementation of OpenIA Whisper suppress_tokens with faster-whisper.

In the default behaviour (-1) it filters out the non_speech_tokens which should help to filter out non-relevant text to the transcription.

faster_whisper/transcribe.py Show resolved Hide resolved
faster_whisper/transcribe.py Outdated Show resolved Hide resolved
@trungkienbkhn trungkienbkhn merged commit 1195359 into SYSTRAN:master Jul 5, 2024
3 checks passed
@jordimas jordimas deleted the suppress_tokens branch October 3, 2024 17:35
Jiltseb pushed a commit to mobiusml/faster-whisper that referenced this pull request Oct 8, 2024
* Filter out non_speech_tokens in suppressed tokens
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