MoritzLaurer HF staff commited on
Commit
e5350ef
1 Parent(s): 3a12891

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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/mDeBERTa-v3-base-mnli-xnli")
191
- sequence_to_classify = "Angela Merkel is a politician in Germany and leader of the CDU ist eine Politikerin in Deutschland und Vorsitzende der 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)