Skip to content

Codes for the paper "Identifying Constructive Conflict in Online Discussions through Controversial yet Toxicity Resilient Posts"

License

Notifications You must be signed in to change notification settings

ocseckin/constructive_conflict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identifying Constructive Conflict in Online Discussions through Controversial yet Toxicity Resilient Posts

This repo contains code to reproduce the results in the paper.

T model:

N/A, we use openAI-omni-moderation for the results reported in the paper

TA model training:

  • Script: scripts/hyperparam_fine_tune_distilbert_ta.py
  • Data: accessible through Zenodo. Data consists of 2 columns: submission-id and TA-score. To use this data, download files from and put it in data/. Researchers should hydrate the text data by themselves by merging this dataset with the original data provided by Reddit.

C model training:

Note: all model training scripts use the helper functions from: scripts/train_utils.py

Model validation

The annotation results and related manual annotation files can be found in the following directories:

  • Toxicity model (note that this is not to evaluate TA model but to choose the best toxicity model that would help us create a training data for TA model): validation/toxicity_manual_eval
  • C model: validation/controversiality_manual_eval

Analysis

  • Baseline model for TA (submission toxicity using linear regression): results/baseline_model.ipynb
  • Produce TA, C score and BERTopic: results/run_trained_models_and_BERTopic_on_test_data.ipynb
  • Interplay between TA and C (Fig.1): results/TA_vs_C.ipynb
  • Topic analysis (Fig.1): results/topic_analysis_on_quadrants.ipynb
  • Extract linguistic features: results/linguistic_features.ipynb

About

Codes for the paper "Identifying Constructive Conflict in Online Discussions through Controversial yet Toxicity Resilient Posts"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published