Package gmisclib :: Module segmentfile
[frames] | no frames]

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.

Classes
  segment
  group
Functions
 
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
 
read(f)
Read a ESPS Xmark (.in) file, and return information.
source code
 
test() source code
Variables
  __package__ = None
hash(x)
Function Details

read(f)

source code 

Read a ESPS Xmark (.in) file, and return information. See parse().