Quotation Recommendation and Interpretation Based on Transformation from Queries to Quotations

Lingzhi Wang, Xingshan Zeng, Kam-Fai Wong
5/29/2021
cs.CLcs.AIcs.SI

Official code: Lingzhi-WANG/Quotation-Recommendation (6 stars, Python, MIT, last commit 2021-06-18).

Abstract

To help individuals express themselves better, quotation recommendation is receiving growing attention. Nevertheless, most prior efforts focus on modeling quotations and queries separately and ignore the relationship between the quotations and the queries.

Show full abstract

In this work, we introduce a transformation matrix that directly maps the query representations to quotation representations. To better learn the mapping relationship, we employ a mapping loss that minimizes the distance of two semantic spaces (one for quotation and another for mapped-query). Furthermore, we explore using the words in history queries to interpret the figurative language of quotations, where quotation-aware attention is applied on top of history queries to highlight the indicator words. Experiments on two datasets in English and Chinese show that our model outperforms previous state-of-the-art models.

View on arXivView PDF

Code Implementations(1)

MIT

Code for paper "Quotation Recommendation and InterpretationBased on Transformation from Queries to Quotations"

61PythonMay 20, 20215 years agoMIT

Similar Papers

Cite this paper

@article{wang2021quotation,
  title  = {Quotation Recommendation and Interpretation Based on Transformation from Queries to Quotations},
  author = {Lingzhi Wang and Xingshan Zeng and Kam-Fai Wong},
  year   = {2021},
  eprint = {2105.14189},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.14189}
}

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

Discussion