Giter Site home page Giter Site logo

didsustechfxxkedup / sarcasmdetection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aniskywalker/sarcasmdetection

0.0 0.0 0.0 11.09 MB

Sarcasm detection on tweets using neural network

Home Page: https://www.aclweb.org/anthology/W/W16/W16-0425.pdf

Python 100.00%

sarcasmdetection's Introduction

Pre-requisite:
nltk (TweetTokenizer)
Keras
Tensorflow
numpy
scipy
gensim (if you are using word2vec)
itertools

Clone the repository:
git clone [email protected]:AniSkywalker/SarcasmDetection.git
cd SarcasmDetection/src/

You can find the trained model file in the following link https://drive.google.com/drive/folders/0B7C_0ZfEBcpRbDZKelBZTFFsV0E?usp=sharing

Download the trained model in /resource/text_model/weights/

run the script:
python sarcasm_detection_model_CNN_LSTM_DNN.py

If you want to train the model with your own data, you can place your the Train, Development and Test data file at /resource/train, /resource/dev, /resource/test folder correspondingly. The system accepts dataset in the tab separated format: id<tab>label<tab>tweet (see /resource/train/train_v1.txt as example)

0: Non-sarcastic 1: Sarcastic

Please cite the following paper

Fracking Sarcasm using Neural Network. Aniruddha Ghosh and Tony Veale. 7th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis (WASSA 2016). NAACL-HLT. 16th June 2016, San Diego, California, U.S.A.

===============================================================================================

To run the model with context information and psychological dimensions(Using Tensorflow):

python sarcasm_context_moods.py

Please cite the following paper

Magnets for Sarcasm: Making Sarcasm Detection Timely, Contextual and Very Personal Aniruddha Ghosh and Tony Veale Conference on Empirical Methods in Natural Language Processing (EMNLP). 7th-11th September, 2017, Copenhagen, Denmark.

Sample of train, dev, and test files are added for both versions.

For test data set, please contact at [email protected]

sarcasmdetection's People

Contributors

aniskywalker 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.