Metaphor Detection Using Contextual Word Embeddings From Transformers

Jerry Liu, Nathan O’Hara, Alexander Rubin, Rachel Draelos, Cynthia Rudin


Abstract
The detection of metaphors can provide valuable information about a given text and is crucial to sentiment analysis and machine translation. In this paper, we outline the techniques for word-level metaphor detection used in our submission to the Second Shared Task on Metaphor Detection. We propose using both BERT and XLNet language models to create contextualized embeddings and a bi-directional LSTM to identify whether a given word is a metaphor. Our best model achieved F1-scores of 68.0% on VUA AllPOS, 73.0% on VUA Verbs, 66.9% on TOEFL AllPOS, and 69.7% on TOEFL Verbs, placing 7th, 6th, 5th, and 5th respectively. In addition, we outline another potential approach with a KNN-LSTM ensemble model that we did not have enough time to implement given the deadline for the competition. We show that a KNN classifier provides a similar F1-score on a validation set as the LSTM and yields different information on metaphors.
Anthology ID:
2020.figlang-1.34
Volume:
Proceedings of the Second Workshop on Figurative Language Processing
Month:
July
Year:
2020
Address:
Online
Editors:
Beata Beigman Klebanov, Ekaterina Shutova, Patricia Lichtenstein, Smaranda Muresan, Chee Wee, Anna Feldman, Debanjan Ghosh
Venue:
Fig-Lang
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
250–255
Language:
URL:
https://aclanthology.org/2020.figlang-1.34
DOI:
10.18653/v1/2020.figlang-1.34
Bibkey:
Cite (ACL):
Jerry Liu, Nathan O’Hara, Alexander Rubin, Rachel Draelos, and Cynthia Rudin. 2020. Metaphor Detection Using Contextual Word Embeddings From Transformers. In Proceedings of the Second Workshop on Figurative Language Processing, pages 250–255, Online. Association for Computational Linguistics.
Cite (Informal):
Metaphor Detection Using Contextual Word Embeddings From Transformers (Liu et al., Fig-Lang 2020)
Copy Citation:
PDF:
https://aclanthology.org/2020.figlang-1.34.pdf
Video:
 http://slideslive.com/38929729