Commit
•
613e8c5
1
Parent(s):
2a8a9dd
Fixed Typo in README.md (#3)
Browse files- Fixed Typo in README.md (f8c2afb2352c9df73af3dbde0c0e983b3c17acb1)
Co-authored-by: Amine Braham <spid3rrr@users.noreply.huggingface.co>
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 |
|