Visit ComfyUI Online for ready-to-use ComfyUI environment
Manipulate and process text data with masking technique to hide or replace specific parts based on criteria for clean outputs.
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.
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.
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.
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.
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.
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.
blacklist_words
parameter.replacement_text
parameter to specify a placeholder or alternative text for the masked words, ensuring the output text remains coherent.replacement_text
parameter empty.text
parameter is left empty.text
parameter before executing the node.blacklist_words
parameter is left empty.blacklist_words
parameter.replacement_text
parameter exceeds the acceptable length.replacement_text
is concise and within the acceptable length limit.© Copyright 2024 RunComfy. All Rights Reserved.