模型:
该模型是Roberta架构的一个经过微调的版本,专门用于序列分类。微调过程中使用了PyTorch深度学习框架以及特定的超参数(2-4e,1-8 epsilon)和Adagrad优化器。
要使用该模型,首先在PyTorch中加载它:
import torch
from transformers import RobertaForSequenceClassification, RobertaTokenizer
# Load the fine-tuned model
model = RobertaForSequenceClassification.from_pretrained('Dzeniks/justification-analyst')
# Load the tokenizer
tokenizer = RobertaTokenizer.from_pretrained('Dzeniks/justification-analyst')
# Tokenize the input sequence
input_text = "This is a sample input sequence"
input = tokenizer.encode_plus(claim, evidence, return_tensors="pt")
# Use the model to make a prediction
model.eval()
with torch.no_grad():
prediction = model(**x)
predictions = torch.argmax(outputs[0], dim=1).item()
该模型是在一个由声明和证据组成的数据集上进行训练的,目标是将每个声明分类为支持、反驳或没有足够信息以做出决定。此任务使用的标签如下: