Visit ComfyUI Online for ready-to-use ComfyUI environment
Analyzes text prompts to count specified keywords for AI artists, enabling better input refinement and visualization.
The LF_KeywordCounter
node is designed to analyze a given text prompt and count the occurrences of specified keywords. This node is particularly useful for AI artists who need to quantify the frequency of certain terms within their prompts, enabling them to better understand and refine their input for AI models. By splitting the prompt based on a defined separator, the node processes each keyword, normalizes it, and counts its occurrences. The results are then formatted into datasets suitable for visual representation in charts and chip sets, providing a clear and structured overview of keyword usage.
The prompt
parameter is a multiline string input where you can enter the text containing the keywords you wish to count. This text will be analyzed by the node to identify and count the occurrences of each keyword. The prompt should be formatted according to the separator you choose, ensuring that keywords are correctly identified and counted. There is no minimum or maximum length for the prompt, but it should be structured in a way that the keywords are easily separable.
The separator
parameter is a string that defines the character(s) used to separate keywords within the prompt. By default, this is set to ", "
, but you can customize it to any character or sequence of characters that best fits your prompt structure. The separator is crucial for correctly splitting the prompt into individual keywords, so it should be chosen carefully to match the format of your input text.
The chart_dataset
output is a JSON object formatted to be compatible with KulDataDataset for use in bar charts. This dataset contains the keyword counts, structured in a way that can be easily visualized, helping you to see the distribution and frequency of keywords in a graphical format. This output is particularly useful for creating visual representations of keyword usage.
The chip_dataset
output is a JSON object formatted for use in a chip set, which is a collection of keyword chips that can be used in various UI components. This dataset provides a structured list of the keywords identified in the prompt, allowing for easy integration into interfaces that require keyword selection or display.
chart_dataset
output to create visual representations of keyword frequency, which can help in analyzing and refining your prompts.chip_dataset
output for integrating keyword chips into your UI components, making it easier to manage and interact with the identified keywords.© Copyright 2024 RunComfy. All Rights Reserved.