Update README.md
Browse files
README.md
CHANGED
@@ -10,5 +10,30 @@ pinned: false
|
|
10 |
license: mit
|
11 |
short_description: Zero-shot classification means no training data is needed.
|
12 |
---
|
|
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: mit
|
11 |
short_description: Zero-shot classification means no training data is needed.
|
12 |
---
|
13 |
+
# π Zero-Shot Text Classification with BART and XLM-RoBERTa
|
14 |
|
15 |
+
This Hugging Face Space is inspired by the article:
|
16 |
+
π [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/)
|
17 |
+
|
18 |
+
## π‘ What this app does:
|
19 |
+
- Takes any raw text input.
|
20 |
+
- Accepts user-defined labels (comma-separated).
|
21 |
+
- Uses Hugging Face's `pipeline("zero-shot-classification")` to predict the most relevant label(s) using:
|
22 |
+
- **facebook/bart-large-mnli** or
|
23 |
+
- **joeddav/xlm-roberta-large-xnli**
|
24 |
+
|
25 |
+
## π¦ Models Supported
|
26 |
+
- `facebook/bart-large-mnli` (English only)
|
27 |
+
- `joeddav/xlm-roberta-large-xnli` (Multilingual)
|
28 |
+
|
29 |
+
## β
Use Cases
|
30 |
+
- Categorizing feedback, support tickets, news headlines, etc.
|
31 |
+
- Works without any custom training β zero-shot!
|
32 |
+
|
33 |
+
## π How it Works
|
34 |
+
The model is prompted with your text and list of labels. It computes the probability of each label being appropriate, and returns scores.
|
35 |
+
|
36 |
+
---
|
37 |
+
|
38 |
+
Read the full article here:
|
39 |
+
π [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/)
|