Fixed Typo in README.md
#3
by
spid3rrr
- opened
README.md
CHANGED
@@ -51,7 +51,7 @@ text = "Angela Merkel is a politician in Germany and leader of the CDU"
|
|
51 |
hypothesis_template = "This example is about {}"
|
52 |
classes_verbalized = ["politics", "economy", "entertainment", "environment"]
|
53 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33")
|
54 |
-
output = zeroshot_classifier(text,
|
55 |
print(output)
|
56 |
```
|
57 |
|
|
|
51 |
hypothesis_template = "This example is about {}"
|
52 |
classes_verbalized = ["politics", "economy", "entertainment", "environment"]
|
53 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33")
|
54 |
+
output = zeroshot_classifier(text, classes_verbalized, hypothesis_template=hypothesis_template, multi_label=False)
|
55 |
print(output)
|
56 |
```
|
57 |
|