Basic Information

appmixer.ai.huggingface.ClassifyText

Classify Text

1.0.0

Public

Classify a piece of text with a text-classification model served by Hugging Face Inference Providers, for example sentiment, topic or toxicity. Returns the highest scoring label plus all scored labels.

Input Ports

in

FieldTypeDescription
Model text Repository ID of a text-classification model, e.g. distilbert/distilbert-base-uncased-finetuned-sst-2-english for sentiment.
Text textarea The text to classify.
Top K number Return only this many highest scoring labels. Leave empty to return all of them.

Output Ports

out

FieldTypeDescription
Model string -
Top Label string -
Top Score number -
All Labels array -

Full Metadata