Skip to content

truongdo/hts_reader

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

HTS Reader

>>> from hts_reader.h_model import HMMSet
>>> hmm_set = HMMSet()
>>> hmm_set.read("examples/test.mmf", forced=True)
>>> hmm_set.read("cat examples/test.mmf|", forced=True)
>>> hmm_set.read(forced=True, from_stdin=True)

This module allows to read the HTS binary model from file, stdin, or even pipeline. The pipeline can be a HHEd command.

I wrote this module with in a similar way with HModel.c. So if you want to improve it, it is necessary to read the HModel.c first. It should not be too hard.

Support Macros

Currently, this version support the following macros: o, t, v, m, s, p, h. I will try to add more macro in the future. But it should be too hard to do it by yourself.

Requirements

  • py_io - supports reading from stdin, pipeline

About

HTS python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages