Git Product home page Git Product logo

Comments (1)

jmakoske avatar jmakoske commented on May 19, 2024

The files imdb-train.pkl and imdb-test.pkl are just slightly processed versions of original data from http://ai.stanford.edu/~amaas/data/sentiment/ . You can get the sentences and polarity values from the original data.

train_df = pd.read_pickle("/media/data2/imdb/imdb-train.pkl")
print(train_df.sample(10))

                                                sentence sentiment  polarity
15135  Just a dumb old movie. First Stanwyck's son ge...         2         0
22916  A meteorite falls in the country of a small to...         7         1
20820  Whether it's a good movie or not, films of thi...         7         1
17389  The '60s is an occasionally entertaining film,...         2         0
20392  As I work at a video store, I found it to be m...         1         0
17671  Everyone in the cast, from Sugiyama to Aoki an...        10         1
16207  The only connection this movie has to horror i...         1         0
19790  The show had great episodes, this is not one o...         4         0
5569   I thought this film was just about perfect. Th...         9         1
21911  I sat through this film and i have to say it o...         1         0

from machine-learning-scripts.

Related Issues (1)

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.