Type: huggingface.text_classification.ZeroShotTextClassifier

Namespace: huggingface.text_classification

Description

Performs zero-shot classification on text. text, classification, zero-shot, natural language processing

Use cases:
- Classify text into custom categories without training
- Topic detection in documents
- Sentiment analysis with custom sentiment labels
- Intent classification in conversational AI

Properties

Property Type Description Default
model hf.zero_shot_classification The model ID to use for zero-shot classification {'type': 'hf.zero_shot_classification', 'repo_id': '', 'path': None, 'variant': None, 'allow_patterns': None, 'ignore_patterns': None}
inputs str The text to classify ``
candidate_labels str Comma-separated list of candidate labels for classification ``
multi_label bool Whether to perform multi-label classification False

Outputs

Output Type Description
output Dict[str, float]  

Metadata

Browse other nodes in the huggingface.text_classification namespace.