Patterns versus Characters in Subword-aware Neural Language Modeling

Rustem Takhanov, Zhenisbek Assylbekov
9/2/2017
cs.CLcs.LG

Official code: zh3nis/pat-sum (5 stars, Python, GPL-3.0, last commit 2017-10-08).

Abstract

Words in some natural languages can have a composite structure. Elements of this structure include the root (that could also be composite), prefixes and suffixes with which various nuances and relations to other words can be expressed.

Show full abstract

Thus, in order to build a proper word representation one must take into account its internal structure. From a corpus of texts we extract a set of frequent subwords and from the latter set we select patterns, i.e. subwords which encapsulate information on character $n$-gram regularities. The selection is made using the pattern-based Conditional Random Field model with $l_1$ regularization. Further, for every word we construct a new sequence over an alphabet of patterns. The new alphabet's symbols confine a local statistical context stronger than the characters, therefore they allow better representations in ${\mathbb{R}}^n$ and are better building blocks for word representation. In the task of subword-aware language modeling, pattern-based models outperform character-based analogues by 2-20 perplexity points. Also, a recurrent neural network in which a word is represented as a sum of embeddings of its patterns is on par with a competitive and significantly more sophisticated character-based convolutional architecture.

View on arXivView PDF

Code Implementations(1)

zh3nis/pat-sumOfficial100%
GPL-3.0

Pattern-based Neural Language Model

50PythonAug 11, 20179 years agoGPL-3.0

Similar Papers

Cite this paper

@article{takhanov2017patterns,
  title  = {Patterns versus Characters in Subword-aware Neural Language Modeling},
  author = {Rustem Takhanov and Zhenisbek Assylbekov},
  year   = {2017},
  eprint = {1709.00541},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1709.00541}
}

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

Discussion