Send Hugging Face classification to Notifications
Classify a piece of text with a Hugging Face classifier model and return the top label and score.
Developer info
- API endpoint slug
- hugging_face.run_text_classification
- Runtime method
- performQuery("hugging_face.run_text_classification"}
Query fields
Model Text input > Other
- Label
- Model
- Helper text
- The Hugging Face model ID of a text-classification model, e.g. distilbert/distilbert-base-uncased-finetuned-sst-2-english.
- Slug
- model_id
- Required
- true
- Can have default value
- true
Text Text input
- Label
- Text
- Helper text
- The text to classify.
- Slug
- text
- Required
- true
- Can have default value
- true
Ingredients
Label The top predicted label.
- Slug
- label
- Filter code
- HuggingFace.runTextClassification.Label
- Type
- String
- Example
- POSITIVE
Score The confidence score for the top label, between 0 and 1.
- Slug
- score
- Filter code
- HuggingFace.runTextClassification.Score
- Type
- String
- Example
- 0.9998
Model The model that produced the classification.
- Slug
- model_id
- Filter code
- HuggingFace.runTextClassification.ModelId
- Type
- String
- Example
- distilbert/distilbert-base-uncased-finetuned-sst-2-english
