Does BERT Learn as Humans Perceive? Understanding Linguistic Styles through Lexica

Shirley Anugrah Hayati, Dongyeop Kang, Lyle Ungar
9/6/2021
cs.CL

Official code: sweetpeach/hummingbird (14 stars, HTML, last commit 2022-04-13).

Abstract

People convey their intention and attitude through linguistic styles of the text that they write. In this study, we investigate lexicon usages across styles throughout two lenses: human perception and machine word importance, since words differ in the strength of the stylistic cues that they provide.

Show full abstract

To collect labels of human perception, we curate a new dataset, Hummingbird, on top of benchmarking style datasets. We have crowd workers highlight the representative words in the text that makes them think the text has the following styles: politeness, sentiment, offensiveness, and five emotion types. We then compare these human word labels with word importance derived from a popular fine-tuned style classifier like BERT. Our results show that the BERT often finds content words not relevant to the target style as important words used in style prediction, but humans do not perceive the same way even though for some styles (e.g., positive sentiment and joy) human- and machine-identified words share significant overlap for some styles.

View on arXivView PDF

Code Implementations(1)

Code and Hummingbird dataset for EMNLP 2021 paper "Does BERT Learn as Humans Perceive? Understanding Linguistic Styles through Lexica"

141HTML, PythonSep 5, 20214 years ago

Similar Papers

Cite this paper

@article{hayati2021does,
  title  = {Does BERT Learn as Humans Perceive? Understanding Linguistic Styles through Lexica},
  author = {Shirley Anugrah Hayati and Dongyeop Kang and Lyle Ungar},
  year   = {2021},
  eprint = {2109.02738},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.02738}
}

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

Discussion