Trees | Indices | Help |
|
---|
|
This module lets you search through label files to find particular ngrams.
Version: $Revision: 1.7 $
Functions | |||
|
|||
|
|||
|
|||
|
Variables | |
WildAnyOne = re.compile(r'.')
|
|
__package__ =
|
Imports: re, xwaves_mark, xwaves_lab, DataError, NoSuchFileError, DataOutOfOrderError, BadFileFormatError, Error
Function Details |
ngram = list of labels. fname = file name for xwaves_mark datafile. datatype = xwaves_mark.PHONE or xwaves_mark.WORD This function returns all instances (even overlapping instances) of the specified N-gram in the file. The return format is [ (end_time, label), ... ], where the zeroth entry in the list is the symbol before the start of the N-gram. It's end time is the beginning of the N-gram. In the argument list, the N-gram is an array of labels; the labels need to match the file's labels exactly. |
ngram = list of labels. fname = file name for xwaves_lab datafile. This function returns all instances (even overlapping instances) of the specified N-gram in the file. The return format is [ (end_time, label), ... ], where the zeroth entry in the list is the symbol before the start of the N-gram. It's end time is the beginning of the N-gram. In the argument list, the N-gram is an array of labels; the labels need to match the file's labels exactly. |
ngram = list of labels. data = list of (time, label, ...) as produced by xwaves_lab.py or similar. This function returns all instances (even overlapping instances) of the specified N-gram in the file. The return format is [ [ label, ...], ... ] . It is a list of n-grams, and each n-gram is a list of entities, and each entities is a tuple which marks when it ends, what it is specifically, and perhaps other things. In the argument list, the N-gram is an array of labels; the labels need to match the file's labels exactly. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:02 2011 | http://epydoc.sourceforge.net |