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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo