## Text Classification

Text Classification is the task of assigning a label or class to a given text. Some use cases are sentiment analysis, natural language inference, and assessing grammatical correctness.

{{{tips.linksToTaskPage.text-classification}}}

### Recommended models

{{#each recommendedModels.text-classification}}
- [{{this.id}}](https://huggingface.co/{{this.id}}): {{this.description}}
{{/each}}

{{{tips.listModelsLink.text-classification}}}

### Using the API

{{{snippets.text-classification}}}

### API specification

#### Request

{{{constants.specsHeaders}}}

{{{specs.text-classification.input}}}

#### Response

{{{specs.text-classification.output}}}
