Commit
•
a5201c9
1
Parent(s):
f548bc1
fixed typo in readme
Browse files
README.md
CHANGED
@@ -161,7 +161,7 @@ text = "Angela Merkel is a politician in Germany and leader of the CDU"
|
|
161 |
hypothesis_template = "Merkel is the leader of the party: {}"
|
162 |
classes_verbalized = ["CDU", "SPD", "Greens"]
|
163 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v1.1-all-33")
|
164 |
-
output = zeroshot_classifier(text,
|
165 |
print(output)
|
166 |
```
|
167 |
|
|
|
161 |
hypothesis_template = "Merkel is the leader of the party: {}"
|
162 |
classes_verbalized = ["CDU", "SPD", "Greens"]
|
163 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v1.1-all-33")
|
164 |
+
output = zeroshot_classifier(text, classes_verbalized, hypothesis_template=hypothesis_template, multi_label=False)
|
165 |
print(output)
|
166 |
```
|
167 |
|