parameters: (self, texts, mode='binary')
return_statement: return self.sequences_to_matrix(sequences, mode=mode)
docstring: Convert a list of texts to a Numpy matrix.
  
          # Arguments
              texts: list of strings.
              mode: one of "binary", "count", "tfidf", "freq".
  
          # Returns
              A Numpy matrix.
docstring_summary: Convert a list of texts to a Numpy matrix.
docstring_tokens: Convert a list of texts to a Numpy matrix .
function: def texts_to_matrix(self, texts, mode='binary'):
          """Convert a list of texts to a Numpy matrix.
  
          # Arguments
              texts: list of strings.
              mode: one of "binary", "count", "tfidf", "freq".
  
          # Returns
              A Numpy matrix.
          """
          sequences = self.texts_to_sequences(texts)
          return self.sequences_to_matrix(sequences, mode=mode)
function_tokens: def texts_to_matrix ( self , texts , mode = 'binary' ) : sequences = self . texts_to_sequences ( texts ) return self . sequences_to_matrix ( sequences , mode = mode )