Git Product home page Git Product logo

lattice_combination's Introduction

Lattice-combination algorithm

This repository contains code for our Interspeech 2019 paper titled "Lattice-Based Lightly-Supervised Acoustic Model Training". The goal is to create improved lattice supervision, and to make the best use of poor transcripts, by combining inaccurate transcripts with hypothesis lattices generated for semi-supervised training.

The repository also contains a simple script to add deletion penalties (insertion rewards) to the HCLG, as well as a script to generate a biased n-gram LM.

Finally we've included an example of the algorithm using pyfst in a Python notebook.

Any questions or problems - please get in touch.

This work is the result of a collaboration with my co-authors Ondrej Klejch, Peter Bell, and Steve Renals.

Installation

This work requires a functioning install of Kaldi.

To install, either run install.sh, providing the Kaldi root directory: bash install.sh /path/to/kaldi

or follow the equivalent steps below:

  1. Place lattice-combine-light.cc and fsts-compose.cc into src/latbin/
  2. Edit src/latbin/Makefile and add lattice-combine-light fsts-compose to the end of the BINFILES.
  3. Run make.

Usage

The core algorithm is in lattice-combine-light.cc. An example usage is included in local/get_combined_lats.sh. The output of this script can be supplied as lattices for training with chain models in Kaldi.

The remaining scripts are included to reproduce some experiments from the paper:

  • local/create_biased_graph.sh shows one way to bias an existing LM to the training data and generate a new graph.
  • local/add_penalty_hclg.sh shows how to apply a deletion penalty / insertion reward to an existing graph.

Graph directories resulting from the above scripts can be passed to local/get_combined_lats.sh.

See also lattice_combination_example.ipynb for an example of how to run the algorithm in a Python notebook.

Citation

For research using this work, please cite:

@inproceedings{Fainberg2019,
  author={Joachim Fainberg and Ondřej Klejch and Steve Renals and Peter Bell},
  title={{Lattice-Based Lightly-Supervised Acoustic Model Training}},
  year=2019,
  booktitle={Proc. Interspeech 2019},
  pages={1596--1600},
  doi={10.21437/Interspeech.2019-2533},
  url={http://dx.doi.org/10.21437/Interspeech.2019-2533}
}

lattice_combination's People

Contributors

ishine avatar jfainberg avatar ondrejklejch avatar

Watchers

 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.