Giter VIP home page Giter VIP logo

hellow-word's Introduction

TRF toolkits based on tensorflow

This toolkits includes the source code of the trans-dimensional random field (TRF) language models (LMs), which is developed based on the tensorflow. This toolkits also includes the baseline LMs, such as the ngram LMs and LSTM LMs. LMs are evaulated by rescoring the n-best list to evaulate the performance in speech recognition.

For the details of the TRF LMs, see: [1] Bin Wang, Zhijian Ou, Zhiqiang Tan, “Learning Trans-dimensional Random Fields with Applications to Language Modeling”, IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2017. [2] Bin Wang, and Zhijian Ou. "Language modeling with neural trans-dimensional random fields." ASRU, 2017.

Usage:

  1. Python 3.0+ is need. We suggest the Anaconda 3.6 distribution in https://www.anaconda.com/download/
  2. Tensorflow is need. See https://www.tensorflow.org/install
  3. Install SRILM toolkits to apply the n-gram LM
cd tools
./install_srilm.sh
  1. Install word2vec tools
cd tools/word2vec
make
  1. Install the source code of Cython
cd tfcode/base
python setup.py build_ext --inplace

The experiments are in the folder egs/, which are originazed as follows:

  • 'egs/word': the word morphology experiment
  • 'egs/ptb_wsj0': train on PTB and rescore on WSJ'92
  • 'egs/ptb_chime4test': train on PTB and rescore on CHiME4 developing and test set
  • 'egs/CHiME4': perform CHiME4 challange
  • 'google1B': traing on Google 1-billion data set
  • 'hkust': experiment on hkust dataset

Typical Experiments:

  • For "Language modeling with neural trans-dimensional random fields." ASRU, 2017, see 'egs/ptb_wsj0/run_trf_neural_sa.py'
  • For "Learning neural trans-dimensional random field language models with noise-contrastive estimation." ICASSP, 2018, see 'egs/CHiME4/local/run_trf_neural_nce.py'
  • For "Improved training of neural trans-dimensional random field language models with dynamic noise-contrastive estimation".
    • Section 5.1:
      • Neural TRF LMs: egs/ptb_wsj0/run_trf_neural_nce.py
      • ngram LMs: egs/ptb_wsj0/run_baseline_ngrams.py
      • LSTM LMs: egs/ptb_wsj0/run_lstmlm.py
    • Section 5.2:
      • Neural TRF LMs: egs/hkust/local/run_trf_neural_nce.py
      • ngram LMs: egs/hkust/local/run_baseline_ngrams.py
      • LSTM LMs: egs/hkust/local/run_lstmlm.py
    • Section 5.3: Google one-billion benchmark
      • Neural TRF LMs: egs/google1B/exp/run_trf_nce.py
      • ngram LMs: egs/google1B/exp/run_baseline_ngrams.py
      • LSTM LMs: egs/google1B/exp/run_lstmlm.py

hellow-word's People

Contributors

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