dennybritz / cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow
Apache License 2.0
5.64k stars 2.77k forks source link

If text have many sentences, how to do #36

Open yuye2133 opened 8 years ago

yuye2133 commented 8 years ago

I read your code just now, but I have a problem and wish that you can teach me. there just have sentence_length in the textCNN, if I have many sentences, how can I do, to get average on all sentences? and if many sentences, how to choice batch in the training stage.

thank you!

SpongebBob commented 7 years ago

Do you mean document classification? Or short text like twitter? If it is twitter, you can just see it as one sentence. What`s more, document classification is quite different from sentence classification.

mexxmann commented 7 years ago

@SpongebBob : How is document classification different than sentence classification? Is there any reason this code would not be effective in classifying documents of lengths between 100-800 words?

initeasylife commented 6 years ago

I have the same problem to solve.Do you have any progress?

initeasylife commented 6 years ago

@SpongebBob 兄弟我也遇到同样的问题,有啥指教吗