Update README.md
Browse files
README.md
CHANGED
@@ -338,8 +338,8 @@ NLI training data of this model includes [label-nli](https://huggingface.co/data
|
|
338 |
|
339 |
```python
|
340 |
from transformers import pipeline
|
341 |
-
|
342 |
-
|
343 |
text_pair='there is a black cat')]) #list of (premise,hypothesis)
|
344 |
# [{'label': 'neutral', 'score': 0.9952911138534546}]
|
345 |
```
|
|
|
338 |
|
339 |
```python
|
340 |
from transformers import pipeline
|
341 |
+
pipe = pipeline("text-classification",model="sileod/deberta-v3-base-tasksource-nli")
|
342 |
+
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 |
```
|