Revisiting the Importance of Encoding Logic Rules in Sentiment Classification

Kalpesh Krishna, Preethi Jyothi, Mohit Iyyer
8/23/2018
cs.CL

Official code: martiansideofthemoon/logic-rules-sentiment (33 stars, Python, last commit 2018-10-27).

Abstract

We analyze the performance of different sentiment classification models on syntactically complex inputs like A-but-B sentences. The first contribution of this analysis addresses reproducible research: to meaningfully compare different models, their accuracies must be averaged over far more random seeds than what has traditionally been reported.

Show full abstract

With proper averaging in place, we notice that the distillation model described in arXiv:1603.06318v4 [cs.LG], which incorporates explicit logic rules for sentiment classification, is ineffective. In contrast, using contextualized ELMo embeddings (arXiv:1802.05365v2 [cs.CL]) instead of logic rules yields significantly better performance. Additionally, we provide analysis and visualizations that demonstrate ELMo's ability to implicitly learn logic rules. Finally, a crowdsourced analysis reveals how ELMo outperforms baseline models even on sentences with ambiguous sentiment labels.

View on arXivView PDF

Code Implementations(1)

Code and dataset for our EMNLP 2018 paper "Revisiting the Importance of Logic Rules in Sentiment Classification".

334Python, ShellAug 16, 20188 years ago

Similar Papers

Cite this paper

@article{krishna2018revisiting,
  title  = {Revisiting the Importance of Encoding Logic Rules in Sentiment Classification},
  author = {Kalpesh Krishna and Preethi Jyothi and Mohit Iyyer},
  year   = {2018},
  eprint = {1808.07733},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.07733}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1808.07733.svg)](https://codeofpaper.com/paper/1808.07733)

Discussion