def check_valid(line0, line1):
data0 = line0.split(b'<STR_LIT:U+0020>')<EOL>if len(data0) != <NUM_LIT:2>:<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>map(int, data0)<EOL>_parse_line(line1, float)<EOL><DEDENT>except:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check :func:`word_embedding_loader.loader.glove.check_valid` for the API.