Coder Social home page Coder Social logo

1146976048qq / iatn Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 3.0 224.79 MB

Dataset and code for "Interaction Attention Transfer Network for Cross-domain Sentiment Classification“

Home Page: https://www.aaai.org/ojs/index.php/AAAI/article/view/4524

License: MIT License

Python 100.00%
transferlearning sentiment-classification interactive-learning

iatn's Introduction

IATN

Dataset and source code for our paper: Inateraction Attention Transfer Network for Cross-domain Sentiment Classification.

Amazon Review Dataset

The public dataset has been uploaded.

Crowdfunding project Dataset: Indiegogo.com

This is our private dataset, if you want to use it, please indicate the source, thank you!

Requirements

— Python 2.7.5

—Tensorflow-gpu 1.2.1

— Numpy 1.13.3

Google Word2Vec

— sklearn

— other pakages

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

Environment

— OS: CentOS Linux release 7.7.1908

— CPU: 24 E5-2650 v4 @ 2.20GHz

— GPU: 4 * K80:11441 MB

Running

Prepare the Pre-trained Word2vec :

— 1. Get the pre-trained model and generate the embeddings ;

​ — Google Word2Vec ;

​ — GloVe ;

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

Prepare the aspect sequence :

— python aspect_extraction.py

(Input/output path can be changed inner the file!)

Run the model :

— python train.py

(Default dataset is Laptop; The parameters can be changed in the train.py file! (line 15~line 31))

Contact

If you have any problem about this library, please 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{zhang2019interactive,\
  title={Interactive Attention Transfer Network for Cross-domain Sentiment Classification},\
  author={Zhang, Kai and Zhang, Hefu and Liu, Qi and Zhao, Hongke and Zhu, Hengshu and Chen, Enhong},\
  year={2019}\
}

iatn's People

Contributors

1146976048qq avatar

Stargazers

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

Watchers

 avatar  avatar  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.