GithubHelp home page GithubHelp logo

twitter-rumour-detection-'s Introduction

Twitter Rumour Detection

A Twitter rumour detection system using various machine learning models (tested using PHEME dataset)

Files contained in this repository:

  1. feature_extraction.py
    Extract feature matrix from raw twitter dataset and store in a csv file "dataset.csv"

  2. scikit-learn.py
    Read "dataset.csv", apply machine learning models and report the performance of testing set, plot confusion matrix

  3. Gaussain Naive Bayes.py
    A Gaussian Naive Bayes model that read "dataset.csv" and implement training, testing and report performance.

  4. dataset.csv
    Extracted features from dataset. The outcome of feature_extraction.py

  5. Report
    Rumor_detection_report.pdf contains the report of this project including the experimental results.

Software requirement:

Python 3.0 or higher version

Library requirement:

pandas seaborn matplotlib sklearn nltk json

Library installation (based on Windows):

  1. In windows command prompt

  2. Navigate to the location of the pip folder

  3. Enter command to install NLTK

    pip3 install nltk

  4. Installation should be done successfully

  5. Other libraries have similiar way for installation

PHEME Dataset Download is available at:

https://figshare.com/articles/PHEME_dataset_of_rumours_and_non-rumours/4010619

Usage:

  1. Download PHEME dataset and unzip the file, put the file together with scripts and add them into current folder in Python.

  2. Install relevant libraries through command prompt or Python platform.

  3. Specify the dataset that desired to analyse in feature_extraction.py and run feature_extraction.py.

  4. Run scikit-learn.py or Gaussain Naive Bayes.py to implement classification and get results.

twitter-rumour-detection-'s People

Contributors

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