Coder Social home page Coder Social logo

weaklysup-fb-ad-political's Introduction

weaklysup-FB-ad-political

This repository contains code for paper titled [ Weakly Supervised Learning for Analyzing Political Campaigns on Facebook ], ICWSM 2023.

Data:

  1. Please download the 'data' folder from following link [Data]
  2. Links of 30 news article for each of 13 issues are inside 30_news_articles_urls folder.
  3. The dataset is parsed in an usable format for the codes in data.pickle. This file is needed to run the model. This file can be found inside Data folder.

Computing Machine:

Supermicro SuperServer 7046GT-TR

Two Intel Xeon X5690 3.46GHz 6-core processors

48 GB of RAM

Linux operating system

Four NVIDIA GeForce GTX 1060 GPU cards for CUDA/OpenCL programming

Software Packages and libraries:

python 3.6.6

PyTorch 1.1.0

jupiter notebook

pandas

pickle

gensim

nltk

nltk.tag

spacy

emoji

sklearn

statsmodels

scipy

matplotlib

numpy

preprocessor

transformers

Code:

For weakly supervised graph embedding based model:

(1) The main function is implemented in main.py

(2) The embedding learning is implemented in Embedder.py

(3) The Bi-directional LSTM is implemented in BLSTM.py

Supervised Baseline:

Data for supervised baseline can be found inside /Data/supervised_data/ folder.

Codes for supervised baseline can be found inside /Code/Baselines/ folder.

(1) For BiLSTM_glove baseline, please run Code/Baselines/baseline_glove_lstm_FB_political.ipynb

(2) For BERT fine-tuned baseline, please run Code/Baselines/baseline_bert.py

Citation:

If you find the paper useful in your work, please cite:

@inproceedings{islam2023weakly,
  title={Weakly Supervised Learning for Analyzing Political Campaigns on Facebook},
  author={Islam, Tunazzina and Roy, Shamik and Goldwasser, Dan},
  booktitle={Proceedings of the International AAAI Conference on Web and Social Media},
  volume={17},
  pages={411--422},
  year={2023}
}

weaklysup-fb-ad-political's People

Contributors

tunazislam avatar

Watchers

James Cloos 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.