Table of Content
- Description
- 🔤️ CR Mask Text:
- 🔤️ CR Mask Text Input Parameters:
- 🔤️ CR Mask Text Output Parameters:
- 🔤️ CR Mask Text Usage Tips:
- 🔤️ CR Mask Text Common Errors and Solutions:
- Related Nodes
ComfyUI Node: 🔤️ CR Mask Text
Class Name
CR Mask Text
Category 🧩 Comfyroll Studio/👾 Graphics/🔤 Text
Author Suzie1 (Account age: 2158days)Extension Comfyroll StudioLatest Updated 2024-06-05Github Stars 0.49K
Github Ask Suzie1 Questions Current Questions Past Questions
How to Install Comfyroll Studio
Install this extension via the ComfyUI Manager by searching for Comfyroll Studio
-
- Click the Manager button in the main menu
-
- Select Custom Nodes Manager button
-
- 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
🔤️ CR Mask Text Description
Manipulate and process text data with masking technique to hide or replace specific parts based on criteria for clean outputs.
🔤️ CR Mask Text:
The CR Mask Text node is designed to help you manipulate and process text data by applying a masking technique. This node is particularly useful for tasks where you need to hide or replace specific parts of the text based on a given set of criteria. By using this node, you can ensure that sensitive or unwanted information is effectively masked, making it a valuable tool for text preprocessing in various AI art and text generation projects. The main goal of this node is to provide a flexible and efficient way to manage text data, ensuring that your outputs are clean and free from any undesired content.
🔤️ CR Mask Text Input Parameters:
text
This parameter accepts the input text that you want to process. It is a multiline string, allowing you to input large blocks of text. The default value is an empty string, and it is a required parameter. The text you provide here will be the subject of the masking operation.
blacklist_words
This parameter contains the words or phrases that you want to mask in the input text. It is also a multiline string, 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 in this list will be searched for in the input text and replaced according to the specified replacement text.
replacement_text
This optional parameter specifies the text that will replace each occurrence of the blacklist words in the input text. It is a single-line string with a default value of an empty string. If not provided, the blacklist words will be removed from the input text without any replacement.
🔤️ CR Mask Text Output Parameters:
STRING
This output parameter provides the processed text after the masking operation has been applied. It is a string that reflects the input text with all instances of the blacklist words replaced by the replacement text. This output is essential for ensuring that your text data is clean and free from any undesired content.
show_help
This output parameter provides a URL to the help documentation for the CR Mask Text node. It is a string containing the link to the relevant wiki page, which offers additional information and guidance on using the node effectively.
🔤️ CR Mask Text Usage Tips:
- To effectively mask multiple words or phrases, list each one on a new line in the
blacklist_words
parameter. - Use the
replacement_text
parameter to specify a placeholder or alternative text for the masked words, ensuring the output text remains coherent. - If you want to completely remove the blacklist words without any replacement, leave the
replacement_text
parameter empty.
🔤️ CR Mask Text 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 before executing the node.
"Blacklist words are required"
- Explanation : This error occurs when the
blacklist_words
parameter is left empty. - Solution : Provide a list of words or phrases to be masked in the
blacklist_words
parameter.
"Replacement text is too long"
- Explanation : This error occurs when the
replacement_text
parameter exceeds the acceptable length. - Solution : Ensure that the
replacement_text
is concise and within the acceptable length limit.