【发布时间】:2018-03-13 18:21:56
【问题描述】:
因为 FLOAT64 占用更多内存,这是标记化矩阵的默认数据类型,我希望它是 INT8 ,从而节省空间。
这就是我说的方法,
texts_to_matrix(texts):
Return: numpy array of shape (len(texts), num_words).
Arguments:
texts: list of texts to vectorize.
mode: one of "binary", "count", "tfidf", "freq" (default: "binary").
【问题讨论】:
标签: python text keras nltk tokenize