Skip to content

Commit

Permalink
add zero shot pipeline tags & examples (huggingface#7983)
Browse files Browse the repository at this point in the history
* add zero shot pipeline tags

* rm default and fix yaml format

* rm DS_Store

* add bart large default

* don't add more typos

Co-authored-by: Julien Chaumond <[email protected]>

* add multiple multilingual examples

* improve multilingual examples for single-label

Co-authored-by: Julien Chaumond <[email protected]>
  • Loading branch information
joeddav and julien-c authored Oct 22, 2020
1 parent 06fc395 commit 077c99b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions model_cards/facebook/bart-large-mnli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
license: mit
thumbnail: https://huggingface.co/front/thumbnails/facebook.png
pipeline_tag: zero-shot-classification
widget:
- text: "November 3 is weeks away and Biden's lead is only growing."
labels: "politics, economics, public health, elections"
---
3 changes: 1 addition & 2 deletions model_cards/joeddav/bart-large-mnli-yahoo-answers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ tags:
- pytorch
datasets:
- yahoo-answers
widget:
- text: "Who are you voting for in 2020? <sep> This text is about politics."
pipeline_tag: zero-shot-classification
---

# bart-lage-mnli-yahoo-answers
Expand Down
13 changes: 9 additions & 4 deletions model_cards/joeddav/xlm-roberta-large-xnli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ tags:
- pytorch
- tensorflow
datasets:
- mnli
- multi_nli
- xnli
widget:
- text: "За кого вы голосуете в 2020 году? <sep> This text is about politique."
license: mit
pipeline_tag: zero-shot-classification
widget:
- text: "За кого вы голосуете в 2020 году?"
labels: "politique étrangère, Europe, élections, affaires, politique"
- text: "لمن تصوت في 2020؟"
labels: "السياسة الخارجية, أوروبا, الانتخابات, الأعمال, السياسة"
- text: "2020'de kime oy vereceksiniz?"
labels: "dış politika, Avrupa, seçimler, ticaret, siyaset"
---

# xlm-roberta-large-xnli
Expand Down Expand Up @@ -115,4 +121,3 @@ This model was pre-trained on set of 100 languages, as described in
MNLI train set and the XNLI validation and test sets. Finally, it was trained for one additional epoch on only XNLI
data where the translations for the premise and hypothesis are shuffled such that the premise and hypothesis for
each example come from the same original English example but the premise and hypothesis are of different languages.

1 change: 1 addition & 0 deletions model_cards/valhalla/distilbart-mnli-12-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ datasets:
tags:
- distilbart
- distilbart-mnli
pipeline_tag: zero-shot-classification
---

# DistilBart-MNLI
Expand Down
1 change: 1 addition & 0 deletions model_cards/valhalla/distilbart-mnli-12-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ datasets:
tags:
- distilbart
- distilbart-mnli
pipeline_tag: zero-shot-classification
---

# DistilBart-MNLI
Expand Down
1 change: 1 addition & 0 deletions model_cards/valhalla/distilbart-mnli-12-6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ datasets:
tags:
- distilbart
- distilbart-mnli
pipeline_tag: zero-shot-classification
---

# DistilBart-MNLI
Expand Down
1 change: 1 addition & 0 deletions model_cards/valhalla/distilbart-mnli-12-9/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ datasets:
tags:
- distilbart
- distilbart-mnli
pipeline_tag: zero-shot-classification
---

# DistilBart-MNLI
Expand Down

0 comments on commit 077c99b

Please sign in to comment.