RohitCSharp commited on
Commit
aa5c944
Β·
verified Β·
1 Parent(s): 74292b6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -1
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
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/)