Skip to content

[CCL2020] A Joint Model for Aspect-Category Sentiment Analysis with Shared Sentiment Prediction Layer

License

Notifications You must be signed in to change notification settings

l294265421/ACSA-SSPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Python 3.6.8
  • torch==1.3.0
  • pytorch-transformers==1.1.0
  • allennlp==0.9.0

Instructions

Before excuting the following commands, replace glove.840B.300d.txt (http://nlp.stanford.edu/data/wordvecs/glove.840B.300d.zip) with the corresponding absolute path of embedding files in your computer. For Chinese datasets, Chinese embedding file is needed and can be downloaded here.

Supported Models

  • CAE: ACSA-SSL (Aspect-Category Sentiment Analysis Model With Shared Sentiment Prediction Layer)
  • CAE-without-cae: ACSA w/o SSL (Aspect-Category Sentiment Analysis Model Without Shared Sentiment Prediction Layer)
  • End-to-end cnn: 2018-emnlp-Joint Aspect and Polarity Classification for Adpect-based Sentiment Analysis with End-to-End Neural Networks paper
  • End-to-end lstm: 2018-emnlp-Joint Aspect and Polarity Classification for Adpect-based Sentiment Analysis with End-to-End Neural Networks paper
  • AS-Capsules: 2019-www-Aspect-level Sentiment Analysis using AS-Capsules paper

Supported Datasets

  • SemEval-2016-Task-5-CH-CAME-SB1
  • SemEval-2016-Task-5-CH-PHNS-SB1
  • SemEval-2016-Task-5-LAPT-SB2
  • SemEval-2016-Task-5-REST-SB2

Run Models

python nlp_tasks/absa/aspect_category_detection_and_sentiment_classification/acd_and_sc_bootstrap_pytorch_cae.py --model_name CAE --current_dataset SemEval-2016-Task-5-REST-SB2 --embedding_filepath glove.840B.300d.txt

Citation

@inproceedings{li-etal-2020-joint-model,
    title = "A Joint Model for Aspect-Category Sentiment Analysis with Shared Sentiment Prediction Layer",
    author = "Li, Yuncong  and
      Yang, Zhe  and
      Yin, Cunxiang  and
      Pan, Xu  and
      Cui, Lunan  and
      Huang, Qiang  and
      Wei, Ting",
    booktitle = "Proceedings of the 19th Chinese National Conference on Computational Linguistics",
    month = oct,
    year = "2020",
    address = "Haikou, China",
    publisher = "Chinese Information Processing Society of China",
    url = "https://aclanthology.org/2020.ccl-1.103",
    pages = "1112--1121",
    abstract = "Aspect-category sentiment analysis (ACSA) aims to predict the aspect categories mentioned in texts and their corresponding sentiment polarities. Some joint models have been proposed to address this task. Given a text, these joint models detect all the aspect categories mentioned in the text and predict the sentiment polarities toward them at once. Although these joint models obtain promising performances, they train separate parameters for each aspect category and therefore suffer from data deficiency of some aspect categories. To solve this problem, we propose a novel joint model which contains a shared sentiment prediction layer. The shared sentiment prediction layer transfers sentiment knowledge between aspect categories and alleviates the problem caused by data deficiency. Experiments conducted on SemEval-2016 Datasets demonstrate the effectiveness of our model.",
    language = "English",
}

About

[CCL2020] A Joint Model for Aspect-Category Sentiment Analysis with Shared Sentiment Prediction Layer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages