Giter VIP home page Giter VIP logo

covidtweet_rr's Introduction

COVID Twitter Misinformation Lookup: An Investigation of Relevance Ranking Methods

Team members: Swati Adhikari, Provakar Mondal, Kiet Nguyen

This repository contains the code for our CS 5604 (Information Storage and Retrieval) final project at Virginia Tech.

Semester: Fall 2021

Instructor: Dr. Ismini Lourentzou

In this course project, we aim to build a search engine using COVID-19-related Tweets as the input data; we experiment with 3 different models: Okapi BM25, RankNet, and TF-Ranking.

Dataset

The dataset we use for this project is borrowed from this paper:

@misc{dharawat2020drink,
      title={Drink bleach or do what now? Covid-HeRA: A dataset for risk-informed health decision making in the presence of COVID19 misinformation},
      author={Arkin Dharawat and Ismini Lourentzou and Alex Morales and ChengXiang Zhai},
      year={2020},
      eprint={2010.08743},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Click here for more detailed instructions on downloading the data.

Requirements

The requirements were generated with pip freeze > requirements.txt and can be found in requirements.txt.

Getting data and training models

  1. Create a new virtual environment and install the packages noted in requirements.txt.
  2. Set up your Twitter API keys (as detailed here).
  3. Run get_data.sh to obtain raw tweets with the Twitter API. This step could take a long time (up to days) due to the Twitter API rate limit of 900 requests per 15 minutes. However, you can always continue where you left off (i.e. this code would not overwrite downloaded data if you stopped it and ran it again).
  4. Run prepare_data.sh to prepare input data for the 3 different models.
  5. Run any of the three files in models with python {filename} or python3 {filename} to run or train the models, or run run_models.sh to execute all 3 models sequentially.

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.