#NEWLINE# def create_mat( self , list_ , row2word = None , col2word = None ) : #NEWLINE# #INDENT# if ( row2word is None ) : #NEWLINE# #INDENT# row2word = self . row2word #NEWLINE# #UNINDENT# if ( col2word is None ) : #NEWLINE# #INDENT# col2word = self . col2word #NEWLINE# #UNINDENT# return IndexMatrix ( sp . coo_matrix ( list_ ) , self , col2word )