keras.preprocessing.text.Tokenizer

说明:num_words的参数设置,对应着sequences_to_matrix方法返回的arrray的shape[1],用于约束返回数组的第2个维度。对texts_to_sequences(texts)等不起作用

原文地址:https://www.cnblogs.com/xianhan/p/10834712.html