Giter Site home page Giter Site logo

russian-language-model's Introduction

Russian Language Model

Russian language model is trained using the fast.ai version of AWD LSTM Language Model (basically LSTM with dropouts) with data from news site Lenta.ru. Achieved perplexity is 36.23 (90/10 validation split), compared to state-of-the-art on November 17, 2017 at 40.68 for English language. To the best of my knowledge, there is no comparable research in the Russian language at the point of writing (May 8, 2018). Details can be found in the notebook RLM.ipynb. The model can be found on Google Disk.

Embeddings vs Language Model

There are several word embeddings trained on Russian corpora: fastText, word2vec, RusVectōrēs. Why would you choose to work with language model instead? The reason is simple: it is a 3-layer neural net with non-linear activations and dropouts. While embeddings are just 300-dimensional vectors in a linear space. More complex word representation allows to capture more sophisticated language peculiarities. It also makes transfer learning very easy - adding a simple custom head will work perfectly for classification problems as well as regression tasks. Check out a similar model trained on OpenSubtitles dataset which got me the second place at Yandex Algorithm 2018 ML-track.

To-do

russian-language-model's People

Contributors

ppleskov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.