def _run_strip_accents(self, text):
text = unicodedata.normalize('<STR_LIT>', text)<EOL>output = []<EOL>for char in text:<EOL><INDENT>cat = unicodedata.category(char)<EOL>if cat == '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>output.append(char)<EOL><DEDENT>return '<STR_LIT>'.join(output)<EOL>
Strips accents from a piece of text.