CoolFace
Modelpublic

chkla/roberta-argument

sourceHugging Faceupdated 4y agoView on Hugging Face
16likes443downloads
Model Card

Welcome to RoBERTArg!

๐Ÿค– Model description

This model was trained on ~25k heterogeneous manually annotated sentences (๐Ÿ“š Stab et al. 2018) of controversial topics to classify text into one of two labels: ๐Ÿท NON-ARGUMENT (0) and ARGUMENT (1).

๐Ÿ—ƒ Dataset

The dataset (๐Ÿ“š Stab et al. 2018) consists of ARGUMENTS (\~11k) that either support or oppose a topic if it includes a relevant reason for supporting or opposing the topic, or as a NON-ARGUMENT (\~14k) if it does not include reasons. The authors focus on controversial topics, i.e., topics that include "an obvious polarity to the possible outcomes" and compile a final set of eight controversial topics: abortion, school uniforms, death penalty, marijuana legalization, nuclear energy, cloning, gun control, and minimum wage.

TOPICARGUMENTNON-ARGUMENT
abortion22132,427
school uniforms3251,734
death penalty3252,083
marijuana legalization3251,262
nuclear energy3252,118
cloning3251,494
gun control3251,889
minimum wage3251,346

๐Ÿƒ๐Ÿผโ€โ™‚๏ธModel training

RoBERTArg was fine-tuned on a RoBERTA (base) pre-trained model from HuggingFace using the HuggingFace trainer with the following hyperparameters:

training_args = TrainingArguments(
    num_train_epochs=2,
    learning_rate=2.3102e-06,
    seed=8,
    per_device_train_batch_size=64,
    per_device_eval_batch_size=64,
)

๐Ÿ“Š Evaluation

The model was evaluated on an evaluation set (20%):

ModelAccF1R argR nonP argP non
RoBERTArg0.81930.80210.84630.79860.76230.8719

Showing the confusion matrix using again the evaluation set:

ARGUMENTNON-ARGUMENT
ARGUMENT2213558
NON-ARGUMENT3251790

โš ๏ธ Intended Uses & Potential Limitations

The model can only be a starting point to dive into the exciting field of argument mining. But be aware. An argument is a complex structure, with multiple dependencies. Therefore, the model may perform less well on different topics and text types not included in the training set.

Enjoy and stay tuned! ๐Ÿš€

๐Ÿฆ Twitter: @chklamm