Text Length Adaptation in Sentiment Classification

Reinald Kim Amplayo, Seonjae Lim, Seung-won Hwang
9/18/2019
cs.CL

Official code: rktamplayo/LeTraNets (7 stars, Python, MIT, last commit 2019-09-18).

Abstract

Can a text classifier generalize well for datasets where the text length is different? For example, when short reviews are sentiment-labeled, can these transfer to predict the sentiment of long reviews (i.e., short to long transfer), or vice versa?

Show full abstract

While unsupervised transfer learning has been well-studied for cross domain/lingual transfer tasks, Cross Length Transfer (CLT) has not yet been explored. One reason is the assumption that length difference is trivially transferable in classification. We show that it is not, because short/long texts differ in context richness and word intensity. We devise new benchmark datasets from diverse domains and languages, and show that existing models from similar tasks cannot deal with the unique challenge of transferring across text lengths. We introduce a strong baseline model called BaggedCNN that treats long texts as bags containing short texts. We propose a state-of-the-art CLT model called Length Transfer Networks (LeTraNets) that introduces a two-way encoding scheme for short and long texts using multiple training mechanisms. We test our models and find that existing models perform worse than the BaggedCNN baseline, while LeTraNets outperforms all models.

View on arXivView PDF

Code Implementations(1)

MIT

[ACML2019] Text Length Adaptation in Sentiment Classification

74PythonSep 17, 20197 years agoMIT
classificationdocument-classificationdomain-adaptationsentence-classificationsentiment-classification+2 more

Similar Papers

Cite this paper

@article{amplayo2019text,
  title  = {Text Length Adaptation in Sentiment Classification},
  author = {Reinald Kim Amplayo and Seonjae Lim and Seung-won Hwang},
  year   = {2019},
  eprint = {1909.08306},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.08306}
}

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/1909.08306.svg)](https://codeofpaper.com/paper/1909.08306)

Discussion