Skip to content
No description, website, or topics provided.
Python C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyhlm
sample
.agignore
.ctags
.gitignore
MANIFEST.in
MIT-LICENSE.txt
README.md
requirements.txt
setup.py

README.md

Nonparametric Bayesian Double Articulation Analyzer

This is a Python implementation for Nonparametric Bayesian Double Articulation Analyzer (NPB-DAA). The NPB-DAA can directly acquire language and acoustic models from observed continuous speech signals.

This generative model is called hiererichel Dirichlet process hidden language model (HDP-HLM), which is obtained by extending the hierarchical Dirichlet process hidden semi-Markov model (HDP-HSMM) proposed by Johnson et al. An inference procedure for the HDP-HLM is derived using the blocked Gibbs sampler originally proposed for the HDP-HSMM.

Requirement

  • Ubuntu 16.04 LTS
  • Python 3.6.5
  • Numpy 1.14.2
  • Scipy 1.0.1
  • Scikit-learn 0.19.1
  • Matplotlib 2.2.2
  • Joblib 0.11
  • Cython 0.28.2
  • tqdm 4.23.4
  • pybasicbayes 0.2.2
  • pyhsmm 0.1.6

Installation instructions

  1. Install GNU compiler collection to use Cython.
$ sudo apt install gcc
  1. Install the necessary libraries for installation.
$ pip install numpy future six
$ pip install cython
  1. Install pybasicbayes.
$ git clone https://github.com/mattjj/pybasicbayes
$ cd pybasicbayes
$ python setup.py install

If you use latest scipy, please careful that the scipy.misc.logsumexp function moved to scipy.special.logsumexp. Therefore, I recommend that change the import instruction as follows.

try:
    from scipy.special import logsumexp
except ImportError:
    from scipy.misc import logsumexp  # removed in scipy 0.19.0
  1. Install pyhsmm.
$ git clone https://github.com/mattjj/pyhsmm
$ cd pyhsmm
$ python setup.py install

If you use latest scipy, please careful that the scipy.misc.logsumexp function moved to scipy.special.logsumexp. Therefore, I recommend that change the import instruction as follows.

try:
    from scipy.special import logsumexp
except ImportError:
    from scipy.misc import logsumexp  # removed in scipy 0.19.0
  1. Install pyhlm (this).
$ git clone https://github.com/RyoOzaki/npbdaa npbdaa
$ cd npbdaa
$ python setup.py install

Sample source

There is a sample source of NPB-DAA in "sample" directory. Please run the "unroll_default_config" before run "pyhlm_sample", and you can change the hyperparameters using the config file "hypparams/defaults.config".

$ cd sample
$ python unroll_default_config.py
$ python pyhlm_sample.py
$ python summary_and_plot.py

References

Authors

Tadahiro Taniguch, Ryo Nakashima, Nagasaka Shogo, Tada Yuki, Kaede Hayashi, and Ryo Ozaki.

License

  • MIT
    • see LICENSE
You can’t perform that action at this time.