Coder Social home page Coder Social logo

eq4 / hmmduration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from georgid/hmmduration

1.0 2.0 0.0 2.36 MB

Python Hidden Markov Models framework. Adapted for computationally optimal Viterbi forced alignment. Added Explicit Duration model

Python 100.00%

hmmduration's Introduction

HMM

A numpy/python-only Hidden Markov Models framework. No other dependencies are required.

This implementation (like many others) is based on the paper: "A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition, LR RABINER 1989"

Major supported features:

  • Discrete HMMs
  • Continuous HMMs - Gaussian Mixtures
  • Supports a variable number of features
  • Easily extendable with other types of probablistic models (simply override the PDF. Refer to 'GMHMM.py' for more information)
  • Non-linear weighing functions - can be useful when working with a time-series

Open concerns:

  • Examples are somewhat out-dated
  • Convergence isn't guaranteed when using certain weighing functions

Duration-model extension : done by [email protected]

  • fixed underflow due to multiplication of probabilities ( handled by sum log(probs) )

  • posteriors of GMM mixtures are computed using scikit learn

  • added oracle test: Oracle test allow to check if model is able to perform perfect alignment on ground truth timestamps of phonemes (e.g. replace observation posteriors with 1-s from ground truth) (described more here: http://www.terasoft.com.tw/conf/ismir2014/proceedings/T050_126_Paper.pdf ) hmm.examples.tests.test_oracle() - needs phoneme-level annotation

Algorithm parameters can be changed from class hmm.ParametersAlgo

TODO: use _ContinuousHMM.usePersistentProbs to store persistently .durationsMap to save time Now computed each time

hmmduration's People

Contributors

georgid avatar guyz avatar

Stargazers

Michael Anthony avatar

Watchers

James Cloos avatar Michael Anthony 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.