Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates text segmentation based on delimiter for efficient processing and analysis.
The polymath_TextSplitter
node is designed to facilitate the division of a given text into smaller segments based on a specified delimiter. This node is particularly useful for processing large blocks of text by breaking them down into manageable parts, which can then be individually analyzed or manipulated. The primary function of this node is to split text strings, allowing for more efficient text handling and analysis. It also offers the flexibility to ignore certain parts of the text before a specified character, enhancing its utility in various text processing scenarios. This node is an essential tool for AI artists and developers who need to parse and process text data efficiently.
The input_string
parameter is the main text input that you want to split. It is a required field and must be provided as a string. This parameter supports multiline text, allowing you to input large blocks of text that need to be divided into smaller parts. The effectiveness of the text splitting process largely depends on the content of this input.
The delimiter
parameter specifies the character or string that will be used to split the input_string
. By default, this is set to a newline character (\n
), but you can customize it to any string that suits your needs. This parameter is crucial as it determines how the text will be divided. If the delimiter is not found in the text, the entire input will be treated as a single segment.
The ignore_before_equals
parameter is a boolean option that, when set to true, instructs the node to ignore any text before the first equals sign (=
) in each segment. This is particularly useful when dealing with key-value pairs or similar structures where the text before the equals sign is not needed. The default value is false, meaning the entire segment will be retained unless specified otherwise.
The splitted_texts
output parameter is a list of strings, each representing a segment of the original input_string
that has been divided based on the specified delimiter
. This output is crucial for further processing or analysis, as it provides the individual text segments that can be independently manipulated or examined. The list format allows for easy iteration and access to each segment.
\n
) as the delimiter. This is particularly useful for processing documents or articles.ignore_before_equals
to true to automatically discard the keys and focus on the values.input_string
, resulting in the entire text being returned as a single segment.input_string
will result in an empty output list, as there is no text to split.input_string
is not empty before processing. Provide a valid text input to ensure meaningful output.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.