CoolFace
Modelpublic

jantrienes/roberta-large-question-classifier

sourceHugging Facemitupdated 2y agoView on Hugging Face
2likes14downloads
Model Card

roberta-large-question-classifier

This model classifies questions according to the question-type ontology defined in following paper: Controllable Open-ended Question Generation with A New Question Type Ontology (Cao & Wang, ACL-IJCNLP 2021). It is a fine-tuned roberta-large on the open_question_type dataset. It achieves the following results on the test set:

              precision    recall  f1-score   support
       cause       0.91      0.93      0.92        91
  comparison       0.62      0.83      0.71        30
     concept       0.85      0.65      0.74        54
 consequence       0.80      0.73      0.76        11
 disjunction       0.80      0.78      0.79        36
     example       0.83      0.85      0.84       139
      extent       0.82      0.94      0.87        48
  judgmental       0.68      0.56      0.62        94
  procedural       0.86      0.88      0.87        85
verification       0.79      0.86      0.83        72
    accuracy                           0.81       660
   macro avg       0.80      0.80      0.80       660
weighted avg       0.81      0.81      0.81       660

Training procedure

Script: https://gist.github.com/jantrienes/329479bdad6b2a239cfcea83b9159a8a

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • trainbatchsize: 16
  • evalbatchsize: 512
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • lrschedulerwarmup_ratio: 0.1
  • num_epochs: 30

Training results

Training LossEpochStepValidation LossF1
1.94671.02331.30990.4050
0.63812.04660.55860.7785
0.6283.06990.64190.7831
0.44874.09320.57700.8094
0.33195.011650.77130.7953
0.20956.013980.87990.8018
0.13557.016311.06460.7961
0.09568.018641.21750.7999
0.06879.020971.36470.7892
0.037110.023301.38090.7987
0.030311.025631.35910.8123
0.026312.027961.53170.8100
0.014413.030291.57260.7959
0.043614.032621.61600.7988
0.004815.034951.68260.7957
0.000116.037281.69130.7957
0.000117.039611.70760.7995
0.003418.041941.80180.7960
0.022819.044271.74570.7916
0.008320.046601.92790.7869
0.000121.048931.83670.7915
0.000322.051261.86200.7842
0.000223.053591.91920.7828
0.024.055921.90810.7927
0.000325.058251.98220.7813
0.005926.060581.87370.7954
0.027.062911.87930.7929
0.028.065241.89050.7940
0.029.067571.89710.7940
0.000230.069901.90020.7954

Framework versions

  • Transformers 4.33.2
  • Pytorch 2.1.0+cu118
  • Datasets 2.14.5
  • Tokenizers 0.13.3