Utilities

TextGrid

A class for working with Praat TextGrid forced alignment files.

TextGrid(realizations[, tmin, tstep, ...])

TextGrid representation that associates phonemes with words

Dictionaries

The dictionaries module contains functions for retrieving and manipulating linguistic data, including SUBTLEX corpus statistics and pronunciation dictionaries.

read_cmupd([strip_stress, apostrophe])

Read the CMU-Pronunciation Dictionary

read_dict([dictionary, strip_stress, upper])

Read a forced aligner dictionary file

combine_dicts(dicts)

Merge multiple dictionaries with set values

split_apostrophe(dic)

Split words with apostrophe into two words (To match SUBTLEX)

write_dict(dictionary, file_name[, separator])

Write a pronunciation dictionary to a text file

read_subtlex([language, lower])

Read the SUBTLEXus data

read_subtlex_pos([upper])

Read SUBTLEXus with part-of-speech tags

fix_apostrophe_pronounciations(dictionary[, ...])

Update a pronunciation dictionary: add affixes and remove any other words with apostrophe

ROI

The roi module contains functions for working with anatomical ROIs.

mask_roi(key, src)

Create a boolean ROI based on anatomical labels

mne_label(key[, subject, subjects_dir, hemi])

MNE label object corresponding to a ROI

symmetric_mask(mask)

Make a surface source space mask symmetric.