def get_line(self, text, on_unicode_error='<STR_LIT:strict>'):
def check(entry):<EOL><INDENT>if entry.find('<STR_LIT:\n>') != -<NUM_LIT:1>:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>entry += "<STR_LIT:\n>"<EOL>return entry<EOL><DEDENT>if type(text) == list:<EOL><INDENT>text = [check(entry) for entry in text]<EOL>return self.f.multilineGetLine(text, on_unicode_error)<EOL><DEDENT>else:<EOL><INDENT>text = check(text)<EOL>return self.f.getLine(text, on_unicode_error)<EOL><DEDENT>
Split a line of text into words and labels. Labels must start with
the prefix used to create the model (__label__ by default).