Zero-Shot Classification
Transformers
PyTorch
Safetensors
English
deberta-v2
text-classification
deberta-v3-base
deberta-v3
deberta
nli
natural-language-inference
multitask
multi-task
pipeline
extreme-multi-task
extreme-mtl
tasksource
zero-shot
rlhf
Eval Results
Inference Endpoints
sileod commited on
Commit
8d42717
1 Parent(s): f3051a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -339,8 +339,8 @@ NLI training data of this model includes [label-nli](https://huggingface.co/data
339
  ```python
340
  from transformers import pipeline
341
  nli_pipe = pipeline("text-classification",model="sileod/deberta-v3-base-tasksource-nli")
342
- make_input = lambda x: [dict(text=prem,text_pair=hyp) for prem,hyp in x]
343
- nli_pipe(make_input([('there is a cat','there is a black cat')])) #list of (premise,hypothesis)
344
  # [{'label': 'neutral', 'score': 0.9952911138534546}]
345
  ```
346
 
 
339
  ```python
340
  from transformers import pipeline
341
  nli_pipe = pipeline("text-classification",model="sileod/deberta-v3-base-tasksource-nli")
342
+ nli_pipe([dict(text='there is a cat',
343
+ text_pair='there is a black cat')]) #list of (premise,hypothesis)
344
  # [{'label': 'neutral', 'score': 0.9952911138534546}]
345
  ```
346