MoritzLaurer HF staff commited on
Commit
b2730f1
1 Parent(s): da3f3ee

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -50,7 +50,7 @@ text = "Angela Merkel is a politician in Germany and leader of the CDU"
50
  hypothesis_template = "This text is about {}"
51
  classes_verbalized = ["politics", "economy", "entertainment", "environment"]
52
  zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v2.0") # change the model identifier here
53
- output = zeroshot_classifier(text, classes_verbalised, hypothesis_template=hypothesis_template, multi_label=False)
54
  print(output)
55
  ```
56
 
@@ -100,7 +100,7 @@ The main reference point is `facebook/bart-large-mnli` which is, at the time of
100
 
101
  These numbers indicate zeroshot performance, as no data from these datasets was added in the training mix.
102
  Note that models without a "`-c`" in the title were evaluated twice: one run without any data from these 28 datasets to test pure zeroshot performance (the first number in the respective column) and
103
- the final run including up to 500 training data points per class from each of the 28 datasets (the second number in brackets in the column). No model was trained on test data.
104
 
105
  Details on the different datasets are available here: https://github.com/MoritzLaurer/zeroshot-classifier/blob/main/v1_human_data/datasets_overview.csv
106
 
 
50
  hypothesis_template = "This text is about {}"
51
  classes_verbalized = ["politics", "economy", "entertainment", "environment"]
52
  zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-large-zeroshot-v2.0") # change the model identifier here
53
+ output = zeroshot_classifier(text, classes_verbalized, hypothesis_template=hypothesis_template, multi_label=False)
54
  print(output)
55
  ```
56
 
 
100
 
101
  These numbers indicate zeroshot performance, as no data from these datasets was added in the training mix.
102
  Note that models without a "`-c`" in the title were evaluated twice: one run without any data from these 28 datasets to test pure zeroshot performance (the first number in the respective column) and
103
+ the final run including up to 500 training data points per class from each of the 28 datasets (the second number in brackets in the column, "fewshot"). No model was trained on test data.
104
 
105
  Details on the different datasets are available here: https://github.com/MoritzLaurer/zeroshot-classifier/blob/main/v1_human_data/datasets_overview.csv
106