Commit
•
e5350ef
1
Parent(s):
3a12891
Update README.md
Browse files
README.md
CHANGED
@@ -187,8 +187,8 @@ For highest performance (but less speed), I recommend using https://huggingface.
|
|
187 |
#### Simple zero-shot classification pipeline
|
188 |
```python
|
189 |
from transformers import pipeline
|
190 |
-
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/
|
191 |
-
sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU
|
192 |
candidate_labels = ["politics", "economy", "entertainment", "environment"]
|
193 |
output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
|
194 |
print(output)
|
|
|
187 |
#### Simple zero-shot classification pipeline
|
188 |
```python
|
189 |
from transformers import pipeline
|
190 |
+
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli")
|
191 |
+
sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU"
|
192 |
candidate_labels = ["politics", "economy", "entertainment", "environment"]
|
193 |
output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
|
194 |
print(output)
|