def split_description(self, text):
<EOL>t = re.sub(r'<STR_LIT>', r'<STR_LIT>', text)  <EOL>t = re.sub(r'<STR_LIT>', r'<STR_LIT>', t)  <EOL>words = getattr(self, '<STR_LIT>')<EOL>try:<EOL><INDENT>splitter = words[<NUM_LIT:0>].strip()<EOL><DEDENT>except:<EOL><INDENT>splitter = '<STR_LIT>'<EOL><DEDENT>t = re.sub(r'<STR_LIT>', r'<STR_LIT:U+0020>'+splitter+'<STR_LIT>', t)<EOL>f = re.IGNORECASE<EOL>pattern = re.compile(r'<STR_LIT>' + r'<STR_LIT:|>'.join(words) + r'<STR_LIT:)>', flags=f)<EOL>parts = filter(None, pattern.split(t))<EOL>return [i.strip() for i in parts]<EOL>
Split a description into parts, each of which can be turned into
a single component.