Coder Social home page Coder Social logo

1146976048qq / eatn Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 3.0 68.42 MB

Dataset and code for ”EATN: An Efficient Adaptive Transfer Network for Aspect-level Sentiment Analysis"

Python 99.84% Shell 0.16%
doamin-adaptation aspect-level-sentiment bert pre-trained-model

eatn's Introduction

EATN

Dataset and source code for our paper: "EATN: An Efficient Adaptive Transfer Network for Aspect-level Sentiment Analysis".

Requirements

— Python 3.6

— Numpy 1.13.3

Google Word2Vec

— Transformer

— sklearn

— other pakages

To install requirements, please run pip install -r requirements.txt.

Environment

— OS: CentOS Linux release 7.7.1908

— CPU: 64 Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz

— GPU: Four Tesla V100-SXM2 32GB

— CUDA: 10.2

Running

Prepare the Pre-trained model :

— 1. Get the BERT pre-trained model and generate the embeddings (./word2vec/get_pre_bert.sh) ;

​ — You can get the Word Embeddings through official BERT or Bert-As-Service ;

​ — Google Word2Vec ;

​ — GloVe ;

— 2. Put the pre-trained model (Google-Word2Vec/Bert) to the coresponseding path ;

Run the baseline models :

— python train_base.py --model_name xxx --dataset xxx

Run the eatn models :

— python train_eatn.py (*Default transfer task is Laptop-2-Restaurant / L2R; The parameters can be changed in the .py file!

Contact

If you have any problem about this library, please create an Issue or send us an Email at:

[email protected]

[email protected]

Citation

If the data and code are useful for your research, please be kindly to give us stars and cite our paper as follows:

@ARTICLE{9415156,
  author={Zhang, Kai and Liu, Qi and Qian, Hao and Xiang, Biao and Cui, Qing and Zhou, Jun and Chen, Enhong},
  journal={IEEE Transactions on Knowledge and Data Engineering}, 
  title={EATN: An Efficient Adaptive Transfer Network for Aspect-level Sentiment Analysis}, 
  year={2021},
  volume={},
  number={},
  pages={1-1},
  doi={10.1109/TKDE.2021.3075238}}

eatn's People

Contributors

1146976048qq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.