'Returns a parsed (list of indices) version of a string s.
Optionally return list of vectors for each line in the string in case
you need to know where those are.'

def parse(self, s, split_lines=False):

    if split_lines:
        return [self.dict.parse(line, vec_type=list) for line in s.split('\n')]
    else:
        return self.dict.parse(s, vec_type=list)
