Tutorials
Loading Word-level features
from pyeeg.io import AlignedSpeech
speech = AlignedSpeech(onset=0., srate=125, path_audio='path/to/audio/file')
Loading Word vectors
from pyeeg.io import WordLevelFeatures
wlf = wfeats = WordLevelFeatures(path_praat_env=dur_path, path_wordonsets=surp_path, path_surprisal=surp_path)
Loading processed EEG (processed by EEGLAB)
To load EEG data from .set
files, the code would be:
from pyeeg.io import eeglab2mne
eeg = eeglab2mne(filepath)
Jupyter Notebooks Examples
WARNING: may be outdated