Contextualized Embeddings for Enriching Linguistic Analyses on Politeness

Ahmad Aljanaideh, Eric Fosler-Lussier, Marie-Catherine de Marneffe


Abstract
Linguistic analyses in natural language processing (NLP) have often been performed around the static notion of words where the context (surrounding words) is not considered. For example, previous analyses on politeness have focused on comparing the use of static words such as personal pronouns across (im)polite requests without taking the context of those words into account. Current word embeddings in NLP do capture context and thus can be leveraged to enrich linguistic analyses. In this work, we introduce a model which leverages the pre-trained BERT model to cluster contextualized representations of a word based on (1) the context in which the word appears and (2) the labels of items the word occurs in. Using politeness as case study, this model is able to automatically discover interpretable, fine-grained context patterns of words, some of which align with existing theories on politeness. Our model further discovers novel finer-grained patterns associated with (im)polite language. For example, the word please can occur in impolite contexts that are predictable from BERT clustering. The approach proposed here is validated by showing that features based on fine-grained patterns inferred from the clustering improve over politeness-word baselines.
Anthology ID:
2020.coling-main.198
Volume:
Proceedings of the 28th International Conference on Computational Linguistics
Month:
December
Year:
2020
Address:
Barcelona, Spain (Online)
Editors:
Donia Scott, Nuria Bel, Chengqing Zong
Venue:
COLING
SIG:
Publisher:
International Committee on Computational Linguistics
Note:
Pages:
2181–2190
Language:
URL:
https://aclanthology.org/2020.coling-main.198
DOI:
10.18653/v1/2020.coling-main.198
Bibkey:
Cite (ACL):
Ahmad Aljanaideh, Eric Fosler-Lussier, and Marie-Catherine de Marneffe. 2020. Contextualized Embeddings for Enriching Linguistic Analyses on Politeness. In Proceedings of the 28th International Conference on Computational Linguistics, pages 2181–2190, Barcelona, Spain (Online). International Committee on Computational Linguistics.
Cite (Informal):
Contextualized Embeddings for Enriching Linguistic Analyses on Politeness (Aljanaideh et al., COLING 2020)
Copy Citation:
PDF:
https://aclanthology.org/2020.coling-main.198.pdf