def _parse_numbered_syllable(unparsed_syllable):
tone_number = unparsed_syllable[-<NUM_LIT:1>]<EOL>if not tone_number.isdigit():<EOL><INDENT>syllable, tone = unparsed_syllable, '<STR_LIT:5>'<EOL><DEDENT>elif tone_number == '<STR_LIT:0>':<EOL><INDENT>syllable, tone = unparsed_syllable[:-<NUM_LIT:1>], '<STR_LIT:5>'<EOL><DEDENT>elif tone_number in '<STR_LIT>':<EOL><INDENT>syllable, tone = unparsed_syllable[:-<NUM_LIT:1>], tone_number<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % unparsed_syllable)<EOL><DEDENT>return syllable, tone<EOL>
Return the syllable and tone of a numbered Pinyin syllable.