模型:

Dzeniks/justification-analyst

英文

Roberta用于理由分析师

该模型是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()

分类标签

该模型是在一个由声明和证据组成的数据集上进行训练的,目标是将每个声明分类为支持、反驳或没有足够信息以做出决定。此任务使用的标签如下:

  • Label 0: 支持
  • Label 1: 反驳
  • Label 2: 无足够信息