Utilities

tools.iterator_tools.scanl(function, iterable, *initial)

Apply function to consecutive pairs from chain (initial, iterable).

Equivalent to Haskell’s scanl.

tools.iterator_tools.take(number, iterable)
Returns:(as an iterator) the first number items from iterable.
tools.iterator_tools.drop(number, iterable)
Returns:(as an iterator) iterable without the first number

elements.

tools.linear_algebra.inverse(m)
tools.linear_algebra.determinant(m)
tools.consistent_hash.consistentHash(o)
Returns:a hash value for o that is the same for each run of the program.
Parameters:o – the object that the hash value is required for.
tools.progress.showProgress(l)

Print progress of an operation as the list l is being yielded. showProgress assumes that consuming each item from the list takes the same amount of time.

Returns:(as an iterable) l
speech.model.readGaussian(f)

Read a Gaussian from a text file in HTK model format. Note that the text file should contain just one Gaussian, not a whole model set.

Returns:a Gaussian.

Previous topic

Promise

Next topic

Results

This Page