mauricesvp commited on
Commit
e35228d
1 Parent(s): adf2b2e
Files changed (1) hide show
  1. README.md +1 -1
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, classes_verbalised, hypothesis_template=hypothesis_template, multi_label=False)
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