Giter Site home page Giter Site logo

dingke / attention-lvcsr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rizar/attention-lvcsr

0.0 2.0 0.0 10.03 MB

End-to-End Attention-Based Large Vocabulary Speech Recognition

License: MIT License

Python 90.61% Shell 0.34% Makefile 0.01% C++ 2.03% HTML 0.32% TeX 1.00% CSS 0.03% Jupyter Notebook 1.86% Batchfile 0.01% Gnuplot 0.01% C 1.52% Cuda 2.25%

attention-lvcsr's Introduction

Attention-based Speech Recognizer

The reference implementation for the papers

End-to-End Attention-based Large Vocabulary Speech Recognition. Dzmitry Bahdanau, Jan Chorowski, Dmitriy Serdyuk, Philemon Brakel, Yoshua Bengio (arxiv draft, ICASSP 2016)

and

Task Loss Estimation for Sequence Prediction. Dzmitry Bahdanau, Dmitriy Serdyuk, Philémon Brakel, Nan Rosemary Ke, Jan Chorowski, Aaron Courville, Yoshua Bengio (arxiv draft, submitted to ICLR 2016).

How to use

  • install all the dependencies (see the list below)
  • set your environment variables by calling source env.sh

Then, please proceed to exp/wsj for the instructions how to replicate our results on Wall Street Journal (WSJ) dataset (available at the Linguistic Data Consortium as LDC93S6B and LDC94S13B).

Dependencies

  • Python packages: pykwalify, toposort, pyyaml, numpy, pandas, pyfst, picklable-itertools;
  • kaldi;
  • kaldi-python.

Given that you have the dataset in HDF5 format, the models can be trained without Kaldi and PyFst.

Installation

  • Compile Kaldi. It should be compiled with --shared option, it means that Kaldi should be configured like

    ./configure --shared
    

    we need Kaldi to be compiled in shared mode to be able to use kaldi-python.

    We don't train anything with Kaldi, so there is no need to compile it with cuda, so if you have any problems with Kaldi+CUDA, feel free to turn it off:

    ./configure --shared --use-cuda=no
    

    After this step you should have openfst installed at $KALDI_ROOT/tools/openfst.

  • Install python packages. You can use pip for that:

    pip install pykwalify toposort pyyaml numpy pandas pyfst
    
  • Install kaldi-python. Clone the repository and run

    python setup.py install
    

    kaldi-python will be compiled and installed to your system, you can check that everything went right by running

    python -c "import kaldi_io"
    

Subtrees

The repository contains custom modified versions of Theano, Blocks, Fuel, picklable-itertools, Blocks-extras as [subtrees] (http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/). In order to ensure that these specific versions are used, we recommend to uninstall regular installations of these packages if you have them installed in addition to sourcing env.sh.

License

MIT

attention-lvcsr's People

Contributors

dmitriy-serdyuk avatar janchorowski avatar rizar avatar

Watchers

 avatar  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.