How to exclude (blacklist?) some words during generation? #1358
Unanswered
SuperMasterBlasterLaser
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. I have discovered this package that really what I needed. However, I have encountered one challenge that I cant solve.
Lets just say we gave model prompt to generate some text:
It will generate some text, but it will contain words that I don't want to be used in text. How to make generation ignore some list of words. I though that using regex will help. I had changed my code into this:
However, it throws an error:
Is it even possible to force generation ignore some words?
Beta Was this translation helpful? Give feedback.
All reactions