pyeeg.io.AlignedSpeech.create_word_level_features

AlignedSpeech.create_word_level_features(path_wordonsets, path_surprisal=None, path_wordvectors=None, path_wordfrequency=None, path_syntactic=None, use_wordonsets=False)

Create a new word level feature object attached to this instance. The word feature object might contains the following features:

  • wordonsets

  • surprisal

  • word frequency

  • word vectors values

  • syntactic depth

  • openning nodes

  • closing nodes

Parameters:
  • path_wordonsets (str) – Path to the file with word onsets (e.g. a *_timed.csv file).

  • path_surprisal (str) – Path to the file containing surprisal values as extracted with the RNNLM toolkit (Default: None).

  • path_wordvectors (str) – Path to the Word Vector file, gensim compatible (Default: None).

  • path_wordfrequency (str) – Path to the file containing word counts as extracted from Google Unigrams (Default: None).

  • path_syntactic (str) – Path to the file containing syntactic features: depth, opening and closing nodes (Default: None).

  • use_wordonsets (bool) – Whether to also add the word onset feature to the aligned features (Default: False).

Returns: