Skip to content

Add option to skip special tokens in TextStreamer #1139

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

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

sroussey
Copy link
Contributor

@sroussey sroussey commented Jan 9, 2025

Introduce a new option to the TextStreamer class that allows skipping special tokens during decoding, aligning its functionality with WhisperTextStreamer.

Copy link
Collaborator

@xenova xenova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Technically this functionality was already present since skip_special_tokens would be passed inside kwargs, but it is much better to be documented. Much appreciated!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@xenova xenova merged commit 1cf1a45 into huggingface:main Jan 15, 2025
4 checks passed
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.

3 participants