keras.preprocessing.text.Tokenizer

 

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

 

posted @ 2019-05-08 21:14  闲汉  阅读(3951)  评论(0编辑  收藏  举报