nnmnkwii.io.hts.load

nnmnkwii.io.hts.load(path=None, lines=None)[source]

Load HTS-style label file

Parameters
  • path (str) – Path of file.

  • lines (list) – Content of label file. If not None, construct HTSLabelFile directry from it instead of loading a file.

Returns

Instance of HTSLabelFile.

Return type

labels (HTSLabelFile)

Examples

>>> from nnmnkwii.io import hts
>>> from nnmnkwii.util import example_label_file
>>> labels = hts.load(example_label_file())