Giter VIP home page Giter VIP logo

rumoureval2019's Introduction

RumourEval2019 Baselines for Task A and Task B

Prerequisites

Keras '2.0.8'

Hyperopt '0.1'

Preprocessing (for both tasks)

  1. Download th data from competition Codalab.

https://competitions.codalab.org/competitions/19938

  1. Download 300d word vectors pre-trained on Google News corpus.

https://code.google.com/archive/p/word2vec/

  1. Change filepaths for data and for word embeddings if needed:

in help_prep_functions.py in loadW2vModel() function insert filepath for word embeddings

in preprocessing_tweets.py and preprocessing_reddit.py change filepaths for data if needed.

  1. Choose features option:

In prep_pipeline.py on line 98:

def main(data ='RumEval2019', feats = 'SemEvalfeatures')

feats can be either text for avgw2v representation of the tweets or SemEvalfeatures for additional extra features concatenated with avgw2v.

  1. Download necessary nltk packages, if they have not been downloaded.

In Python interactive interpreter, input the following commands:

import nltk

nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
  1. Run preprocessing script
python prep_pipeline.py

Running the model

The description of the model architecture can be found in https://www.aclweb.org/anthology/S/S17/S17-2083.pdf The features used in this code are different to the ones used in the paper.

  1. In outer_semeval2019.py you can choose the number of trials that the search algorithm performs while searching for the parameter combination.

  2. In parameter_search.py you can define search_space.

  3. Make sure output/ folder has been created

mkdir output
  1. Run the baseline
python outer_semeval2019.py

If you have any questions feel free to contact me [email protected] or other task organisers [email protected]

rumoureval2019's People

Contributors

kochkinaelena avatar tramanh06 avatar kochkinahelen avatar

Watchers

 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.