ComfyUI  >  Nodes  >  Comfyroll Studio >  🔤 Text Blacklist

ComfyUI Node: 🔤 Text Blacklist

Class Name

CR Text Blacklist

Category
🧩 Comfyroll Studio/🛠️ Utils/🔤 Text
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

Install this extension via the ComfyUI Manager by searching for  Comfyroll Studio
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyroll Studio in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🔤 Text Blacklist Description

Filter out unwanted words or phrases from text with specified replacements or removals for content moderation and text sanitization.

🔤 Text Blacklist:

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.

🔤 Text Blacklist Input Parameters:

text

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.

blacklist_words

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.

replacement_text

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.

🔤 Text Blacklist Output Parameters:

STRING

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.

show_help

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.

🔤 Text Blacklist Usage Tips:

  • To ensure that all unwanted words are effectively filtered out, list each word or phrase on a new line in the blacklist_words parameter.
  • If you want to remove the blacklist words without replacing them, simply leave the replacement_text parameter empty.
  • Use the 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 Blacklist Common Errors and Solutions:

"Input text is required"

  • Explanation: This error occurs when the text parameter is left empty.
  • Solution: Ensure that you provide the input text in the text parameter.

"Blacklist words are required"

  • Explanation: This error occurs when the blacklist_words parameter is left empty.
  • Solution: Make sure to list at least one word or phrase in the blacklist_words parameter.

"Replacement text is too long"

  • Explanation: This error occurs when the replacement_text parameter exceeds a reasonable length.
  • Solution: Ensure that the replacement_text is concise and appropriate for replacing the blacklist words.

🔤 Text Blacklist Related Nodes

Go back to the extension to check out more related nodes.
Comfyroll Studio
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.