def save(f, arr, vocab):
f.write(('<STR_LIT>' % (arr.shape[<NUM_LIT:0>], arr.shape[<NUM_LIT:1>])).encode('<STR_LIT:utf-8>'))<EOL>for word, idx in vocab:<EOL><INDENT>_write_line(f, arr[idx], word)<EOL><DEDENT>
Save word embedding file.
Check :func:`word_embedding_loader.saver.glove.save` for the API.