pyeeg.io.load_depth_values

pyeeg.io.load_depth_values(filepath)

Load syntactic structure depth values. Expected file format is:

word1 depth1 onset1 offset1 word2 depth2 onset2 offset2 …

or, if loaded from file with all other syntactic features:

Word Depth Open Close ton toff word1 depth1 open1 close1 ton1 toff1 word2 depth2 …

Note that the second format has a header line.

Parameters:

filepath (str) – Path to the file containing syntactic structure depth values. If None, returns None.

Returns:

depth – Depth values for each word, i.e. position in the syntactic structure parse tree.

Return type:

ndarray