kklein commited on
Commit
983df96
1 Parent(s): d5b0a26
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -22,7 +22,7 @@ widget:
22
  ## Model Description
23
 
24
  This model has [GBERT Large](https://huggingface.co/deepset/gbert-large) as base model and fine-tuned it on xnli de dataset.
25
- The default hypothesis template is in English: `This text is {}`. While using this model , change it to "In deisem geht es um {}." or something different. While inferencing through huggingface api may give poor results as it uses by default english template. Since model is monolingual and not multilingual, hypothesis template needs to be changed accordingly.
26
 
27
  ## XNLI DEV (german)
28
  Accuracy: 85.5
@@ -38,7 +38,7 @@ classifier = pipeline("zero-shot-classification",
38
  model="Sahajtomar/German_Zeroshot")
39
  sequence = "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
40
  candidate_labels = ["Verbrechen","Tragödie","Stehlen"]
41
- hypothesis_template = "In deisem geht es um {}." ## Since monolingual model,its sensitive to hypothesis template. This can be experimented
42
 
43
  classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
44
  """{'labels': ['Tragödie', 'Verbrechen', 'Stehlen'],
 
22
  ## Model Description
23
 
24
  This model has [GBERT Large](https://huggingface.co/deepset/gbert-large) as base model and fine-tuned it on xnli de dataset.
25
+ The default hypothesis template is in English: `This text is {}`. While using this model , change it to "In diesem Text geht es um {}." or something different. While inferencing through huggingface api may give poor results as it uses by default english template. Since model is monolingual and not multilingual, hypothesis template needs to be changed accordingly.
26
 
27
  ## XNLI DEV (german)
28
  Accuracy: 85.5
 
38
  model="Sahajtomar/German_Zeroshot")
39
  sequence = "Letzte Woche gab es einen Selbstmord in einer nahe gelegenen kolonie"
40
  candidate_labels = ["Verbrechen","Tragödie","Stehlen"]
41
+ hypothesis_template = "In diesem Text geht es um {}." ## Since monolingual model,its sensitive to hypothesis template. This can be experimented
42
 
43
  classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
44
  """{'labels': ['Tragödie', 'Verbrechen', 'Stehlen'],