nlp - How to deal with length variations for text classification using CNN (Keras) -


it has been proved cnn (convolutional neural network) quite useful text/document classification. wonder how deal length differences lengths of articles different in cases. there examples in keras? thanks!!

here 3 options:

  1. crop longer articles.
  2. pad shorter articles.
  3. use recurrent neural network, naturally supports variable-length inputs.

Popular posts from this blog

java - Cannot send AES encrypted messages of over 47 characters -

php - How to set default value of a select dynamically from database using smarty? -

telerik - Reformat image format in PDF -