Giter Club home page Giter Club logo

doer's Introduction

DOER

The implementation of

DOER: Dual Cross-Shared RNN for Aspect Term-Polarity Co-Extraction. Huaishao Luo, Tianrui Li, Bing Liu, Junbo Zhang. ACL, 2019.

This paper focuses on two related subtasks of aspect-based sentiment analysis, namely aspect term extraction (ATE) and aspect sentiment classification (ASC), which we call aspect term-polarity co-extraction.

Requirements

  • python 2.7
  • tensorflow==1.2.0
pip install -r requirements.txt

Running

preprocess
python main.py --do_preprocess --data_sets laptops_2014
train
python main.py \
    --do_train --do_evaluate \
    --data_sets laptops_2014 \
    --choice_rnncell regu \
    --use_mpqa \
    --use_labels_length \
    --do_cross_share --lr 0.001 \
    --batch_size 16

See main.py for more training arguments.

word embedding

Amazon Embedding can be found in amazon, and Yelp Embedding can be found in yelp.

Citation

If this work is helpful, please cite as:

@Inproceedings{Luo2019doer,
    author = {Huaishao Luo and Tianrui Li and Bing Liu and Junbo Zhang},
    title = {DOER: Dual Cross-Shared RNN for Aspect Term-Polarity Co-Extraction},
    booktitle = {ACL},
    year = {2019}
}

doer's People

Contributors

arrowluo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

doer's Issues

Data format

Hi,

Thank u for sharing ur code with us.

I have a question about the data, how it is structred, are pos tags required for ur model?

given this example from ur data files:

cord NN NO B_AP NEUTRAL B_AP+NEUTRAL

why B_AP NEUTRAL is repeated twice??

Thank u

problem1

你好,在运行的过程中出现了:tensorflow.python.framework.errors_impl.InvalidArgumentError: Can not squeeze dim[1], expected a dimension of 1, got 0 for 'cond/Squeeze' (op: 'Squeeze') with input shapes: [?,0,,] 这应该怎么解决呢

some file are missing!

Hello!Recently, I am learning through this project, but I found that there is less data in the dataset, so I can't understand some code steps.The problem is that all the files of model_data are missing in the data folder.So can you upload the model_data that I can run the project.Thank you!

数据集问题

1.请问laptop数据集中这五个标签的前两个代表什么NN NO B_AP POSITIVE B_AP+POSITIVE,后三个是不是表示是否是aspect,情感极性,以及联合标签
2.您的论文中提到emdedding部分采用的是DECNN的方法,但是DECNN中并没有对twitter数据集进行训练,twitter数据集的domain embedding是您自己训练的吗
3.方便提供一下twitter数据集和restaurant数据集吗

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.