Views
No views yet
microsoft/deberta-base on the extended ClaimRev dataset.1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("gabski/deberta-suboptimal-claim-detection-with-thesis-context")
5model = AutoModelForSequenceClassification.from_pretrained("gabski/deberta-suboptimal-claim-detection-with-thesis-context")
6claim = 'Teachers are likely to educate children better than parents.'
7thesis = 'Homeschooling should be banned.'
8model_input = tokenizer(claim, thesis, return_tensors='pt')
9model_outputs = model(**model_input)
10
11outputs = torch.nn.functional.softmax(model_outputs.logits, dim = -1)
12print(outputs)