pyeeg.io
.get_sentence_position
- pyeeg.io.get_sentence_position(filepath)
Extract sentence position of words given a text file. The format of the input file must be such that each line has one sentence, words separated by space and eventually no punctuation (ideally word list should match list obtained from word onsets or word frequency features…).
- Parameters:
filepath (str) – path to text file, one sentence per line, cleaned of punctuations…
- Returns:
list – Word list
list – Sentence position of each word