Context-Aware Cross-Lingual Mapping

Hanan Aldarmaki, Mona Diab
3/8/2019
cs.CL

Official code: h-aldarmaki/sent_translation_retrieval (6 stars, JavaScript, last commit 2019-03-25).

Abstract

Cross-lingual word vectors are typically obtained by fitting an orthogonal matrix that maps the entries of a bilingual dictionary from a source to a target vector space. Word vectors, however, are most commonly used for sentence or document-level representations that are calculated as the weighted average of word embeddings.

Show full abstract

In this paper, we propose an alternative to word-level mapping that better reflects sentence-level cross-lingual similarity. We incorporate context in the transformation matrix by directly mapping the averaged embeddings of aligned sentences in a parallel corpus. We also implement cross-lingual mapping of deep contextualized word embeddings using parallel sentences with word alignments. In our experiments, both approaches resulted in cross-lingual sentence embeddings that outperformed context-independent word mapping in sentence translation retrieval. Furthermore, the sentence-level transformation could be used for word-level mapping without loss in word translation quality.

View on arXivView PDF

Code Implementations(1)

Scripts and data for evaluating cross-lingual sentence embeddings, including cross-lingual ELMo alignment scripts.

63JavaScript, PythonMar 25, 20197 years ago

Similar Papers

Cite this paper

@article{aldarmaki2019contextaware,
  title  = {Context-Aware Cross-Lingual Mapping},
  author = {Hanan Aldarmaki and Mona Diab},
  year   = {2019},
  eprint = {1903.03243},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.03243}
}

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

Discussion