Context encoders as a simple but powerful extension of word2vec

Franziska Horn
6/8/2017
26 citations
stat.MLcs.CLcs.LG

Official code: cod3licious/conec (20 stars, Python, MIT, last commit 2020-05-09).

Abstract

With a simple architecture and the ability to learn meaningful word embeddings efficiently from texts containing billions of words, word2vec remains one of the most popular neural language models used today. However, as only a single embedding is learned for every word in the vocabulary, the model fails to optimally represent words with multiple meanings.

Show full abstract

Additionally, it is not possible to create embeddings for new (out-of-vocabulary) words on the spot. Based on an intuitive interpretation of the continuous bag-of-words (CBOW) word2vec model's negative sampling training objective in terms of predicting context based similarities, we motivate an extension of the model we call context encoders (ConEc). By multiplying the matrix of trained word2vec embeddings with a word's average context vector, out-of-vocabulary (OOV) embeddings and representations for a word with multiple meanings can be created based on the word's local contexts. The benefits of this approach are illustrated by using these word embeddings as features in the CoNLL 2003 named entity recognition (NER) task.

View on arXivView PDF

Code Implementations(1)

cod3licious/conecOfficial100%
MIT

Context Encoders (ConEc) as a simple but powerful extension of the word2vec model for learning word embeddings

205PythonOct 22, 20166 years agoMIT
machine-learningnatural-language-processingword-embeddings

Similar Papers

Cite this paper

@article{horn2017context,
  title  = {Context encoders as a simple but powerful extension of word2vec},
  author = {Franziska Horn},
  year   = {2017},
  eprint = {1706.02496},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.02496}
}

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

Discussion