Update README.md
Browse files
README.md
CHANGED
@@ -85,15 +85,13 @@ Here is an example of how to use the model:
|
|
85 |
from transformers import pipeline
|
86 |
|
87 |
zershot_pipeline = pipeline("zero-shot-classification",
|
88 |
-
|
89 |
-
model="svalabs/gbert-large-zeroshot-nli")
|
90 |
|
91 |
sequence = "Ich habe ein Problem mit meinem Iphone das so schnell wie möglich gelöst werden muss"
|
92 |
-
|
93 |
labels = ["Computer", "Handy", "Tablet", "dringend", "nicht dringend"]
|
94 |
-
|
95 |
hypothesis_template = "In diesem Satz geht es um das Thema {}."
|
96 |
|
|
|
97 |
zershot_pipeline(sequence, labels, hypothesis_template=hypothesis_template)
|
98 |
|
99 |
```
|
|
|
85 |
from transformers import pipeline
|
86 |
|
87 |
zershot_pipeline = pipeline("zero-shot-classification",
|
88 |
+
model="svalabs/gbert-large-zeroshot-nli")
|
|
|
89 |
|
90 |
sequence = "Ich habe ein Problem mit meinem Iphone das so schnell wie möglich gelöst werden muss"
|
|
|
91 |
labels = ["Computer", "Handy", "Tablet", "dringend", "nicht dringend"]
|
|
|
92 |
hypothesis_template = "In diesem Satz geht es um das Thema {}."
|
93 |
|
94 |
+
|
95 |
zershot_pipeline(sequence, labels, hypothesis_template=hypothesis_template)
|
96 |
|
97 |
```
|