def _postprocess_line(cls, line, separator, strip): """Parse a line from festival to phonemized output""" sep = separator.word out = [] for word in lispy.parse(line): word = cls._postprocess_word(word, separator, strip) if word != '': out.append(word) out = sep.join(out) return out if strip else out + sep