Module segmentfile
source code
This parses a '.in' file from xwaves. The '.in' files show
segmentation of an utterance. segmentfile.parse(s) takes a list of
lines from such a file, and returns three things: * the title of the file
(typically the utterance) * a list of groups (a group is typically a
word) * a list of segments.
Groups include a list of the segments of which they are made, along
with a name and an index. Segments contain a phoneme, a start/end time,
an index, and the group to which they belong.
|
parse(l)
Parses a list of lines from an ESPS Xmark file (.in), and returns a
tuple (title, list of groups, list of segments). |
source code
|
|
|
|
|
|
|
__package__ = None
hash(x)
|
Read a ESPS Xmark (.in) file, and return information. See
parse().
|