Commit
·
9c05c28
1
Parent(s):
3adecfd
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ datasets:
|
|
| 16 |
#pipeline_tag:
|
| 17 |
#- text-classification
|
| 18 |
widget:
|
| 19 |
-
- text: "I first thought that I really liked the movie, but upon second thought it was actually disappointing. [SEP] The movie was good."
|
| 20 |
|
| 21 |
model-index: # info: https://github.com/huggingface/hub-docs/blame/main/modelcard.md
|
| 22 |
- name: DeBERTa-v3-large-mnli-fever-anli-ling-wanli
|
|
@@ -115,7 +115,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
| 115 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 116 |
|
| 117 |
premise = "I first thought that I liked the movie, but upon second thought it was actually disappointing."
|
| 118 |
-
hypothesis = "The movie was good."
|
| 119 |
|
| 120 |
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
|
| 121 |
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
|
|
|
|
| 16 |
#pipeline_tag:
|
| 17 |
#- text-classification
|
| 18 |
widget:
|
| 19 |
+
- text: "I first thought that I really liked the movie, but upon second thought it was actually disappointing. [SEP] The movie was not good."
|
| 20 |
|
| 21 |
model-index: # info: https://github.com/huggingface/hub-docs/blame/main/modelcard.md
|
| 22 |
- name: DeBERTa-v3-large-mnli-fever-anli-ling-wanli
|
|
|
|
| 115 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 116 |
|
| 117 |
premise = "I first thought that I liked the movie, but upon second thought it was actually disappointing."
|
| 118 |
+
hypothesis = "The movie was not good."
|
| 119 |
|
| 120 |
input = tokenizer(premise, hypothesis, truncation=True, return_tensors="pt")
|
| 121 |
output = model(input["input_ids"].to(device)) # device = "cuda:0" or "cpu"
|