CoolFace
Modelpublic

Pannathad/xlm-roberta-base-th-product-review-sentiment-analysis

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes10downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

output2

This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set:

  • —Loss: 1.0553
  • —Accuracy: 0.7264
  • —F1: 0.7307

Model description

  from transformers import pipeline
 
  model = pipeline(model="Pannathad/xlm-roberta-base-th-product-review-sentiment-analysis")
  result = model(["มีการกันกระแทกอย่างดี", "มีการห่อบับเบิ้ลอย่างหนา","มาส่งไว","แต่ราคาแพงมาก"])
  # result
  [
    {'label': 'Quality', 'score': 0.8555123209953308},
    {'label': 'Packaging', 'score': 0.9143754243850708},
    {'label': 'DeliveryTime', 'score': 0.9672013521194458},
    {'label': 'NEG-Price', 'score': 0.6597796082496643}
  ]

 

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 64
  • —evalbatchsize: 128
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 25
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyF1
2.56711.0262.38490.27120.1157
2.41212.0522.23980.34380.2029
2.21163.0781.86080.46490.3680
1.88064.01041.50040.57630.5189
1.53565.01301.26570.60770.5605
1.26566.01561.08810.68520.6578
1.04857.01821.14360.67070.6556
0.95688.02081.02530.71430.6974
0.8139.02340.95460.70700.6900
0.707110.02600.93330.74580.7287
0.61311.02861.02580.71670.7038
0.559612.03120.95540.71190.6996
0.508113.03381.03850.72150.7147
0.461514.03640.97690.72640.7165
0.410215.03900.98450.72150.7213
0.345316.04160.93150.73610.7343
0.352117.04420.99160.74090.7439
0.298418.04681.04860.72640.7261
0.273719.04941.03250.72150.7239
0.261120.05201.02100.73370.7371
0.243621.05461.05080.72640.7283
0.245122.05721.04870.73120.7344
0.228523.05981.04340.73370.7366
0.207224.06241.05300.72880.7326
0.207825.06501.05530.72640.7307

Framework versions

  • —Transformers 4.41.2
  • —Pytorch 2.3.0+cu121
  • —Datasets 2.20.0
  • —Tokenizers 0.19.1