Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,7 @@ model-index:
|
|
18 |
results: []
|
19 |
pipeline_tag: zero-shot-classification
|
20 |
widget:
|
21 |
-
- text:
|
22 |
---
|
23 |
|
24 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
@@ -45,11 +45,11 @@ from transformers import pipeline
|
|
45 |
model_name = "thkkvui/mDeBERTa-v3-base-finetuned-nli-jnli"
|
46 |
classifier = pipeline("zero-shot-classification", model=model_name)
|
47 |
|
48 |
-
text = "
|
49 |
-
labels = ["天気", "ニュース", "金融", "予定"]
|
50 |
|
51 |
-
|
52 |
-
|
|
|
53 |
```
|
54 |
|
55 |
#### NLI use-case
|
|
|
18 |
results: []
|
19 |
pipeline_tag: zero-shot-classification
|
20 |
widget:
|
21 |
+
- text: 今日の予定を教えて
|
22 |
---
|
23 |
|
24 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
45 |
model_name = "thkkvui/mDeBERTa-v3-base-finetuned-nli-jnli"
|
46 |
classifier = pipeline("zero-shot-classification", model=model_name)
|
47 |
|
48 |
+
text = ["今日の天気を教えて", "ニュースある?", "予定をチェックして", "ドル円は?"]
|
|
|
49 |
|
50 |
+
for t in text:
|
51 |
+
output = classifier(text, labels, multi_label=False)
|
52 |
+
print(output)
|
53 |
```
|
54 |
|
55 |
#### NLI use-case
|