---
title: "Text Classification"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/huggingface/textclassification
markdown: https://docs.nodetool.ai/nodes/huggingface/textclassification.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/huggingface/textclassification.md
---

# Text Classification

**Type:** `huggingface.TextClassification`

**Namespace:** `huggingface`

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| model | `str` | Text-classification model repo id. | `distilbert-base-uncased-finetuned-sst-2-english` |
| inputs | `str` | The text to classify. | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |
| scores | `list` |  |

## Related Nodes

Browse other nodes in the [huggingface](./) namespace.
