RohitCSharp's picture
Update README.md
aa5c944 verified
|
raw
history blame
1.47 kB
---
title: Zero Short Text Classification
emoji: 🐠
colorFrom: red
colorTo: blue
sdk: gradio
sdk_version: 5.34.1
app_file: app.py
pinned: false
license: mit
short_description: Zero-shot classification means no training data is needed.
---
# πŸ” Zero-Shot Text Classification with BART and XLM-RoBERTa
This Hugging Face Space is inspired by the article:
πŸ”— [Zero-Shot Text Classification with BART and XLM-RoBERTa – C# Corner](https://www.c-sharpcorner.com/article/zero-shot-text-classification-with-bart-and-xlm-roberta/)
## πŸ’‘ What this app does:
- Takes any raw text input.
- Accepts user-defined labels (comma-separated).
- Uses Hugging Face's `pipeline("zero-shot-classification")` to predict the most relevant label(s) using:
- **facebook/bart-large-mnli** or
- **joeddav/xlm-roberta-large-xnli**
## πŸ“¦ Models Supported
- `facebook/bart-large-mnli` (English only)
- `joeddav/xlm-roberta-large-xnli` (Multilingual)
## βœ… Use Cases
- Categorizing feedback, support tickets, news headlines, etc.
- Works without any custom training β€” zero-shot!
## πŸ›  How it Works
The model is prompted with your text and list of labels. It computes the probability of each label being appropriate, and returns scores.
---
Read the full article here:
πŸ‘‰ [https://www.c-sharpcorner.com/article/zero-shot-text-classification-with-bart-and-xlm-roberta/](https://www.c-sharpcorner.com/article/zero-shot-text-classification-with-bart-and-xlm-roberta/)