Skip to content

Code for our NAACL 2018 Paper on Predicting User Comments on News Items

Notifications You must be signed in to change notification settings

julian-risch/NAACL2018

 
 

Repository files navigation

Popularity Prediction Framework

Citation

If you use our work, please cite our paper Prediction for the Newsroom: Which Articles Will Get the Most Comments? as follows:

@inproceedings{ambroselli2018prediction,
author = {Ambroselli, Carl and Risch, Julian and Krestel, Ralf and Loos, Andreas},
booktitle = {Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics (NAACL)},
pages = {193-199},
title = {Prediction for the Newsroom: Which Articles Will Get the Most Comments?},
year = {2018}
}

Start the framework

  1. Clone the repository: git clone https://github.com/CarlAmbroselli/Popularity_Predictor
  2. Open repository: cd Popularity_Predictor
  3. (optional) Checkout paper/napoles branch: git checkout paper/napoles
  4. Install requirements: pip install -r requirements.txt #might be done in a virtualenv
  5. Add comments.csv to the data/datasets/YNACC-Evaluation/train/ and data/datasets/YNACC-Evaluation/test folder with the following format:
sdid,commentindex,headline,url,guid,commentid,timestamp,thumbs-up,thumbs-down,text,parentid,constructiveclass,sd_agreement,sd_type,sentiment,tone,commentagreement,topic,intendedaudience,persuasiveness,y_persuasive,y_audience,y_agreement_with_commenter,y_informative,y_mean,y_controversial,y_disagreement_with_commenter,y_off_topic_with_article,y_sentiment,y_sentiment_neutral,y_sentiment_positive,y_sentiment_negative,y_sentiment_mixed
  1. Add data/datasets/YNACC/users.csv file with the following format:
index,comment_count,threads_participated_in,threads_initiated,tu_received,td_received,commenting_rate
  1. Save word2vec model to model/word2vec/GoogleNews-vectors-negative300.bin
  2. Download en spacy model: python -m spacy download en
  3. Run using python .

About

Code for our NAACL 2018 Paper on Predicting User Comments on News Items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 52.0%
  • Python 48.0%