Giter Club home page Giter Club logo

ironysarcasmdetection's Introduction

A Kernel-based Approach for Irony and Sarcasm Detection in Italian

This is the code's repository of the paper "A Kernel-based Approach for Irony and Sarcasm Detection in Italian" presented at IronITA @ Evalita2018

The system ranked first and second at the sarcasm detection task, while it ranked sixth and seventh at the irony detection task.

Please if you use this code cite:

@inproceedings{Santilli2018AKA,
  title={A Kernel-based Approach for Irony and Sarcasm Detection in Italian},
  author={Andrea Santilli and Danilo Croce and Roberto Basili},
  booktitle={EVALITA@CLiC-it},
  year={2018}
}

Usage

This repository contains the jupyter notebook file GenerateKLPFile used to model the features for the task as explained in the paper.

It also contains the .pickle files with the words frequency extracted from the Irony Corpus.

Prerequisites

  1. In order to use this code you have first to download all the files in the repository, the datasets for the task and place them in the same folder.

  2. Once you have downloaded these data, you need to preprocess them with a POS-tagger and lemmatizer. You have to generate a copy of each dataset downloaded test_dataset.klp -> ../test_ironita2018_revnlt_processed.tsv train_dataset.klp -> ../training_ironita2018_renlt_processed.tsv and put them in the parent directory ../ . These 2 new copy of the datasets that you have to generate have an extra column text::text::S where, for each line, the tex has been preprocessed as text::lemma::POS

  3. Now you can use the jupyter notebook file GenerateKLPFile to generate the .klp file with all the features modelled as explained in the paper.

  4. At the end you have to use KeLP to use the modelled features in a kernel machine (linear combination, as explained in the paper, or other type of combination/kernel). An example of kelp classification can be found in the file IroniTAClassifier.java

ironysarcasmdetection's People

Contributors

teelinsan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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