Giter Site home page Giter Site logo

measurement-of-online-discussion-authenticity's Introduction

Online Social Network Abuser Detection & Online Discussion Authenticity Detection Framework

Code used in the following papers.

If you are using this code for any research publication, or for preparing a technical report, you must cite the following paper as the source of the code.

Aviad Elyashar, Jorge Bendahan, and Rami Puzis. "Is the News Deceptive? Fake News Detection using Topic Authenticity"

BibTex:

@inproceedings{elyashar2017news, author={Elyashar, Aviad and Bendahan, Jorge and Puzis, Rami}, title = {Is the News Deceptive? Fake News Detection using Topic Authenticity},
booktitle = {The Seventh International Conference on Social Media Technologies, Communication, and Informatics}, series = {SOTICS 2017}, year = {2017}, location = {Athens, Greece}, pages = {16--21}, numpages={6} }

Requirements

  1. Python modules
  • numpy
  • Scikit Learn
  • networkx
  • pandas 0.22.0
  • wordcloud

Configuration instractions

In order to add a module to the pipline you need to uncomment the module from config.ini file Most of the argumant in the config.ini are intuitive such as:

  1. ['a','b', ..] is a list
  2. 4 is a number
  3. {'key': value} is a dict

Some of the moduls contains special argumant called targeted_fields

This argument purpose is to obtain the input data to a modul using the join operation between DB tables. This argument recieve list of dicts as followes: In case you want to use data from only one DB table the dict arg as follows:

[{'source': {'table_name': 'posts', 'id': 'post_id', 'target_field': 'content', "where_clauses": [{"field_name": "domain", "value": "Microblog"}]}},{..},..]

Where: 'table_name' -> is the table name 'id' -> is the id of the table (its not support multiple ids) 'target_field' -> the field that the module will recive as input for its functions where_clauses' -> list containing constrains such as {"field_name": "domain", "value": "Microblog"} is all post with "Microblog" in their domain field.

In case you want to use data from join of 3 tables Each dict must contain 3 keys: 'source', 'connection', 'destination'

{'source': {'table_name': 'claims', 'id': 'claim_id', 'target_field': 'verdict', "where_clauses": []}, 'connection': {'table_name': 'claim_tweet_connection', 'source_id': 'claim_id', 'target_id': 'post_id', }, 'destination': {'table_name': 'posts', 'id': 'post_id', 'target_field': 'content', "where_clauses": [{"field_name": "domain", "value": "Microblog"}]}}

Where 'source' contains the id table, 'connection' is the table containing the connection and 'destanation' holds the data In the given example the result is all the Microblog posts of a claim => {<claim_id1>: [, , ...], <claim_id2>: [, , ...], ...}

the connection table must contain the source id and the destination id in order to preform join

measurement-of-online-discussion-authenticity's People

Contributors

aviade5 avatar jgrogin avatar maor63 avatar nitzanmaarek 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.