GithubHelp home page GithubHelp logo

cmasch / cnn-text-classification Goto Github PK

View Code? Open in Web Editor NEW
116.0 116.0 37.0 1.09 MB

Text classification with Convolution Neural Networks on Yelp, IMDB & sentence polarity dataset v1.0

Jupyter Notebook 95.46% Python 4.54%
binary-classification cnn convolutional-neural-networks deep-learning imdb imdb-dataset keras multiclass-classification nlp sentiment-classification tensorflow text-classification yelp-dataset

cnn-text-classification's People

Contributors

cmasch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cnn-text-classification's Issues

Upgrading to TensorFlow 2

I plan to update the code to TensorFlow 2.x in the next days.
Besides I will update the jupyter notebook for simplified use by adding TensorFlow Datasets.

If you have further hints let me know.

Best
Christopher

File not found

'glove.6B.300d.txt'
'data/rt-polaritydata/rt-polarity.neg'
'data/rt-polaritydata/rt-polarity.pos'
'data/imdb/train/neg'
'data/imdb/train/pos'
'data/imdb/test/neg'
'data/imdb/test/pos'
'data/yelp/neg.txt'
'data/yelp/pos.txt'

Where is this all files

Issue with the padding

I am trying to use the below but getting the below error, Please suggest the possible option
data = pad_sequences(sequences, maxlen=MAX_SEQ_LENGTH, padding='post')

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.