Update README.md
Browse files
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 |
-
|
343 |
-
|
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 |
|