Visit ComfyUI Online for ready-to-use ComfyUI environment
Filter out unwanted words or phrases from text with specified replacements or removals for content moderation and text sanitization.
The CR Text Blacklist node is designed to help you filter out unwanted words or phrases from a given text. This node is particularly useful when you need to ensure that certain terms do not appear in your text output, making it ideal for content moderation, text sanitization, or simply refining your text data. By specifying a list of blacklist words, the node will replace each occurrence of these words in the input text with a specified replacement text or remove them entirely if no replacement is provided. This functionality can be crucial for maintaining the quality and appropriateness of your text data, ensuring that it meets specific standards or guidelines.
This parameter takes the input text that you want to process. It supports multiline input, allowing you to provide extensive text data. The default value is an empty string, and it is a required parameter. The text you input here will be scanned for any words or phrases listed in the blacklist_words
parameter.
This parameter allows you to specify the words or phrases that you want to filter out from the input text. It also supports multiline input, enabling you to list multiple words or phrases, each on a new line. The default value is an empty string, and it is a required parameter. Each word or phrase listed here will be searched for in the input text and replaced according to the replacement_text
parameter.
This optional parameter lets you specify the text that will replace each occurrence of the blacklist words in the input text. If no replacement text is provided, the blacklist words will be removed from the input text. The default value is an empty string, meaning that by default, the blacklist words will be removed without any replacement.
This output parameter provides the processed text after the blacklist words have been replaced or removed. It reflects the input text with all specified blacklist words handled according to the replacement_text
parameter.
This output parameter provides a URL link to the help documentation for the CR Text Blacklist node. It is useful for users who need additional information or guidance on how to use the node effectively.
blacklist_words
parameter.replacement_text
parameter empty.replacement_text
parameter to replace blacklist words with a specific term, which can be useful for maintaining the readability of the text while still filtering out unwanted content.text
parameter is left empty.text
parameter.blacklist_words
parameter is left empty.blacklist_words
parameter.replacement_text
parameter exceeds a reasonable length.replacement_text
is concise and appropriate for replacing the blacklist words.© Copyright 2024 RunComfy. All Rights Reserved.