fix small typo
#3
by
bsenst - opened
README.md
CHANGED
|
@@ -13,7 +13,7 @@ pipeline_tag: zero-shot-classification
|
|
| 13 |
widget:
|
| 14 |
- text: "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
|
| 15 |
candidate_labels: "Verbrechen,Tragödie,Stehlen"
|
| 16 |
-
hypothesis_template: "In
|
| 17 |
|
| 18 |
---
|
| 19 |
|
|
@@ -38,7 +38,7 @@ classifier = pipeline("zero-shot-classification",
|
|
| 38 |
model="Sahajtomar/German_Zeroshot")
|
| 39 |
sequence = "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
|
| 40 |
candidate_labels = ["Verbrechen","Tragödie","Stehlen"]
|
| 41 |
-
hypothesis_template = "In
|
| 42 |
|
| 43 |
classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
|
| 44 |
"""{'labels': ['Tragödie', 'Verbrechen', 'Stehlen'],
|
|
|
|
| 13 |
widget:
|
| 14 |
- text: "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
|
| 15 |
candidate_labels: "Verbrechen,Tragödie,Stehlen"
|
| 16 |
+
hypothesis_template: "In diesem geht es um {}."
|
| 17 |
|
| 18 |
---
|
| 19 |
|
|
|
|
| 38 |
model="Sahajtomar/German_Zeroshot")
|
| 39 |
sequence = "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
|
| 40 |
candidate_labels = ["Verbrechen","Tragödie","Stehlen"]
|
| 41 |
+
hypothesis_template = "In diesem geht es um {}." ## Since monolingual model,its sensitive to hypothesis template. This can be experimented
|
| 42 |
|
| 43 |
classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
|
| 44 |
"""{'labels': ['Tragödie', 'Verbrechen', 'Stehlen'],
|