Visit ComfyUI Online for ready-to-use ComfyUI environment
Process and classify text input based on patterns using regular expressions to split text into parts for categorization.
The classify_function
node is designed to process and classify text input based on specific patterns. It is particularly useful for breaking down structured text into distinct components, which can then be used for further analysis or processing. This node leverages regular expressions to split the input text into parts and assigns these parts to predefined response variables. The primary goal of this node is to facilitate the organization and categorization of text data, making it easier to handle and interpret. By enabling or disabling the node, you can control whether the classification process is executed, providing flexibility in your workflow.
This parameter is a boolean that determines whether the node is active or not. When set to True
, the node processes the input text and performs the classification. If set to False
, the node will not execute the classification and will return None
. The default value is True
.
This parameter is a string that represents the text input to be classified. It is a required parameter, meaning you must provide a value for the node to function correctly. The text should be structured in a way that matches the expected pattern for classification, typically involving specific markers or delimiters.
This output parameter contains the first part of the classified text. If the corresponding part of the text is empty or matches the string "empty", this parameter will be set to None
.
This output parameter contains the second part of the classified text. Similar to response1
, if the corresponding part of the text is empty or matches the string "empty", this parameter will be set to None
.
This output parameter contains the third part of the classified text. Like the other response parameters, if the corresponding part of the text is empty or matches the string "empty", this parameter will be set to None
.
is_enable
parameter to control the execution of the node. This can be useful in scenarios where you want to conditionally process text based on certain criteria.text
parameter is not provided.text
parameter before executing the node.is_enable
parameter is set to False
.is_enable
parameter to True
to enable the node and allow it to process the input text.© Copyright 2024 RunComfy. All Rights Reserved.