Giter VIP home page Giter VIP logo

cue-cnn's Introduction

CUE-CNN

Code for the sarcasm detection system described in the paper Modelling Context with User Embeddings for Sarcasm Detection in Social Media [[paper] (https://arxiv.org/abs/1607.00976)] [[bib] ()]

The CNN implemention was forked from [Giuseppe Attardi] (https://github.com/attardi/CNN_sentence) (which was forked from [Yoon Kim] (https://github.com/yoonkim/CNN_sentence))

pre-requisites:

  • my_utils -> https://github.com/samiroid/utils
  • pre-trained word embeddings (e.g. Skip-gram)
  • user embeddings -> The embeddings we used can be found here. If you want to train your own embeddings you can use the code available here.

requirements:

  • python >= 2.7
  • numpy
  • theano

Getting the data

To comply with Twitter policies we can only share the msg ids. These can be found in the file bamman_redux_ids.csv

Running the code

  1. clone or download the [my_utils] (https://github.com/samiroid/utils) module and place it under the folder code
  2. run prepare.sh with the paths to the utils module and the word embeddings: ./prepare.sh PATH_TO_WORD_EMBEDDINGS PATH_TO_USER_EMBEDDINGS
  3. run sarcasm_cnn.sh

Replicating the results from the paper

  1. run crossfolds.sh

cue-cnn's People

Contributors

samiroid avatar

Watchers

Pascal Weinberger 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.