Input
Type:String
The data type that TextClassifierNode accepts as input
Output
Type:GraphTypes.ClassificationResult
The data type that TextClassifierNode outputs
Examples
Constructors
Interfaces
Constructors
constructor
Parameters
Configuration for the text classifier node.
Returns
TextClassifierNode
Interfaces
ClassifierClass
Configuration for a single classification classProperties
label:string
The class label for the classification category (raw name like “hategroup”, “selfharm”)
threshold: number
Threshold value for classification confidence
ClassifierConfig
Configuration for the text classifierProperties
classes:ClassifierClass[]
Array of classes to classify with their thresholds
TextClassifierNodeProps
Array of classes to classify with their thresholdsProperties
modelWeightsPath:string
Path to model weights for text classification
embedderComponentId: string
Text embedder component ID to use for semantic analysis
supportedClasses: string[]
List of supported classes that the model can classify
classifierConfig?: ClassifierConfig
Optional classifier configuration with classes and thresholds
errorHandling?: NodeErrorConfig
Optional error handling configuration for the node
TextClassifierNodeWithComponentProps
Optional error handling configuration for the nodeProperties
textClassifierComponent:TextClassifierComponent
Pre-configured text classifier component to reuse
classifierConfig?: ClassifierConfig
Optional classifier configuration with classes and thresholds
errorHandling?: NodeErrorConfig
Optional error handling configuration for the node