Transcription

class corpustools.corpus.classes.lexicon.Transcription(seg_list)[source]

Transcription object, sequence of symbols

Parameters
seg_listlist

List of segments that form the transcription. Elements in the list, can be Segments, strings, or BaseAnnotations

Attributes
_listlist

List of strings representing segment symbols

stress_pattern: dict

Dictionary with keys of segment indices and values of the stress for that segment

boundariesdict

Possible keys of ‘morpheme’ or ‘tone’ that keeps track of where morpheme or tone boundaries are inserted

Methods

__init__(seg_list)

find(environment[, mode])

Find instances of an EnvironmentFilter in the Transcription Most notably, this function is called to perform phonological searches

find_nonmatch(environment[, is_sets])

Find all instances of an EnvironmentFilter in the Transcription that match in the middle segments, but don't match on the sides

match_segments(segments)

Returns a matching segments from a list of segments

with_syllable_and_word_boundaries()

with_word_boundaries()

Return the string of segments with word boundaries surrounding them