Giter Club home page Giter Club logo

sst2-sentence's Introduction

Ready-to-use parsed sentence level dataset of Stanford Sentiment Treebank Dataset

This folder contains raw SST-2 data as well as our parsed script. And we also provided ready-to-use pickle files that directly loads everything for you for your own training purposes. If you consider us this folder, please cite the original paper.

Data Partition

This folder contains original partitioned datasets, Train Set (8190 sentences), Valid Set (1101 Sentences) and Test Set (2131 sentences). Each sentence will have labels indicating its valence rating. Note that you can recover the 5 classes by mapping the positivity probability using the following cut-offs: [0, 0.2], (0.2, 0.4], (0.4, 0.6], (0.6, 0.8], (0.8, 1.0]. You can change it to binary label as well by ignoring the neutral sentences.

Format of Each File

id_embed_[Specific Set]: map between the original sentence id and embeddings. {'id' : [[glove300], [glove300], ..., [glove300]]}. Each word is embedded using standard GloVe 300 vector training by wikipedia. The raw embeddings are attached in the Glove folder as well.

id_rating_[Specific Set]: map between the original sentence id and its rating. {'id': float}.

id_sentence_[Specific Set]: map between the original sentence id and the original sentece in text encoded in utf-8. {'id': string}.

Simple Load Using Pickle

You can directly load all those files by using pickle module avaliable in python.

import pickle

id_embed_train = pickle.load( open( "id_embed_train.p", "rb" ) )

sst2-sentence's People

Contributors

frankaging avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.