def write_embeddings_to_disk(config, model, sess):
 row_vocab_path = (config.input_base_path + '/row_vocab.txt')
 row_embedding_output_path = (config.output_base_path + '/row_embedding.tsv')
 print 'Writing row embeddings to:', row_embedding_output_path
 sys.stdout.flush()
 write_embedding_tensor_to_disk(row_vocab_path, row_embedding_output_path, sess, model.row_embedding)
 col_vocab_path = (config.input_base_path + '/col_vocab.txt')
 col_embedding_output_path = (config.output_base_path + '/col_embedding.tsv')
 print 'Writing column embeddings to:', col_embedding_output_path
 sys.stdout.flush()
 write_embedding_tensor_to_disk(col_vocab_path, col_embedding_output_path, sess, model.col_embedding)

def write_embeddings_to_disk ( config , model , sess ) : row_vocab_path = ( config . input_base_path + '/row_vocab.txt' ) row_embedding_output_path = ( config . output_base_path + '/row_embedding.tsv' ) print 'Writing row embeddings to:' , row_embedding_output_path sys . stdout . flush ( ) write_embedding_tensor_to_disk ( row_vocab_path , row_embedding_output_path , sess , model . row_embedding ) col_vocab_path = ( config . input_base_path + '/col_vocab.txt' ) col_embedding_output_path = ( config . output_base_path + '/col_embedding.tsv' ) print 'Writing column embeddings to:' , col_embedding_output_path sys . stdout . flush ( ) write_embedding_tensor_to_disk ( col_vocab_path , col_embedding_output_path , sess , model . col_embedding )
writes row and column embeddings disk .