mauricesvp
commited on
Commit
•
e35228d
1
Parent(s):
adf2b2e
Fix typo
Browse files
README.md
CHANGED
@@ -47,7 +47,7 @@ text = "Angela Merkel is a politician in Germany and leader of the CDU"
|
|
47 |
hypothesis_template = "This text is about {}"
|
48 |
classes_verbalized = ["politics", "economy", "entertainment", "environment"]
|
49 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v2.0") # change the model identifier here
|
50 |
-
output = zeroshot_classifier(text,
|
51 |
print(output)
|
52 |
```
|
53 |
|
|
|
47 |
hypothesis_template = "This text is about {}"
|
48 |
classes_verbalized = ["politics", "economy", "entertainment", "environment"]
|
49 |
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v2.0") # change the model identifier here
|
50 |
+
output = zeroshot_classifier(text, classes_verbalized, hypothesis_template=hypothesis_template, multi_label=False)
|
51 |
print(output)
|
52 |
```
|
53 |
|