Giter Site home page Giter Site logo

absa_plm's Introduction

NLP

Run

  1. download pre-trained models and process dataset
python preprocess.py
  1. fine-tune models

You can fine-tune single model with:

python finetune.py --model_name xxx --dataset xxx --lr xxx

or fine-tune all models:

bash run.sh
  1. evaluate results and web demo

copy your finetune model to checkpoint folder fist

#python demo.py

Results

top: 3-runs average

bottom: 3-runs best

Model Lap14 Rest14 MAMS
Acc(%) F1(%) Acc(%) F1(%) Acc(%) F1(%)
BERT 78.63
78.84
74.72
75.01
85.33
85.62
78.44
79.26
83.26
83.61
82.75
83.20
RoBERTa 81.77
81.97
78.31
78.50
87.71
88.30
81.64
82.53
83.16
84.06
82.46
83.44
BERT_LoRA 77.74
78.84
72.73
74.98
84.70
85.00
76.84
77.24
82.44
83.23
81.67
82.58
RoBERTa_LoRA 82.24
82.76
79.27
79.97
87.05
87.59
80.10
81.05
84.03
84.43
83.47
84.03

absa_plm's People

Contributors

yongqiangzheng avatar

Stargazers

Wen Xin avatar JS LAB avatar JN L avatar Zeng Xinling avatar  avatar

Watchers

 avatar

Forkers

coderxdy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.