nestordemeure/stop_word
Huggingface transformers stopping criteria that halts the generation when a given stop word is encountered.
This tool helps developers working with Hugging Face transformers. It allows you to automatically stop a text generation process as soon as a specific word or phrase appears in the output. You provide an initial text prompt and a list of 'stop words,' and it generates text, stopping precisely when one of your designated stop words is encountered. This is useful for engineers building applications that use large language models.
No commits in the last 6 months.
Use this if you are a developer building applications with Hugging Face transformers and need to control text generation by stopping it at a specific keyword or phrase.
Not ideal if you are not a developer working with Hugging Face models, or if you need more complex stopping logic beyond simple keyword detection.
Stars
9
Forks
2
Language
Python
License
Apache-2.0
Category
Last pushed
Apr 08, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/nestordemeure/stop_word"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
azukds/tubular
Python package implementing ML feature engineering and pre-processing for polars or pandas dataframes.
huggingface/course
The Hugging Face course on Transformers
huggingface/audio-transformers-course
The Hugging Face Course on Transformers for Audio
rickiepark/nlp-with-transformers
<트랜스포머를 활용한 자연어 처리> 예제 코드를 위한 저장소입니다.
NielsRogge/Transformers-Tutorials
This repository contains demos I made with the Transformers library by HuggingFace.