arXiv(opens in a new tab)Computer ScienceDec 2017Cited by 9 papers on PaperVantage

Manuscript Offprint

arXiv:1607.04606

Enriching Word Vectors with Subword Information

Piotr Bojanowski, Édouard Grave, Armand Joulin, Tomáš Mikolov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Continuous word representations, trained on large unlabeled corpora are useful for many natural language processing tasks. Popular models that learn such representations ignore the morphology of words, by assigning a distinct vector to each word. This is a limitation, especially for languages with large vocabularies and many rare words. In this paper, we propose a new approach based on the skipgram model, where each word is represented as a bag of character nn-grams. A vector representation is associated to each character nn-gram; words being represented as the sum of these representations. Our method is fast, allowing to train models on large corpora quickly and allows us to compute word representations for words that did not appear in the training data. We evaluate our word representations on nine different languages, both on word similarity and analogy tasks. By comparing to recently proposed morphological word representations, we show that our vectors achieve state-of-the-art performance on these tasks.

1 Introduction

Learning continuous representations of words has a long history in natural language processing [Rumelhart et al. (1988]. These representations are typically derived from large unlabeled corpora using co-occurrence statistics [Deerwester et al. (1990, Schütze (1992, Lund and Burgess (1996]. A large body of work, known as distributional semantics, has studied the properties of these methods [Turney et al. (2010, Baroni and Lenci (2010]. In the neural network community, ?) proposed to learn word embeddings using a feedforward neural network, by predicting a word based on the two words on the left and two words on the right. More recently, ?) proposed simple log-bilinear models to learn continuous representations of words on very large corpora efficiently.

Most of these techniques represent each word of the vocabulary by a distinct vector, without parameter sharing. In particular, they ignore the internal structure of words, which is an important limitation for morphologically rich languages, such as Turkish or Finnish. For example, in French or Spanish, most verbs have more than forty different inflected forms, while the Finnish language has fifteen cases for nouns. These languages contain many word forms that occur rarely (or not at all) in the training corpus, making it difficult to learn good word representations. Because many word formations follow rules, it is possible to improve vector representations for morphologically rich languages by using character level information.

In this paper, we propose to learn representations for character nn-grams, and to represent words as the sum of the nn-gram vectors. Our main contribution is to introduce an extension of the continuous skipgram model [Mikolov et al. (2013b], which takes into account subword information. We evaluate this model on nine languages exhibiting different morphologies, showing the benefit of our approach.

References (4)