Code and Dataset for paper "On the Role of Images for Analyzing Claims in Social Media" @2nd International Workshop on Cross-lingual Event-centric Open Analytics (CLEOPATRA) co-located with The Web Conf 2021
Python
5
43 commits
updated Sep 13, 2021
The repository for the source code and the dataset used in the paper
Gullal S. Cheema, Sherzod Hakimov, Eric Müller-Budack and Ralph Ewerth “On the Role of Images for Analyzing Claims in Social Media“, Proceedings of the 2nd International Workshop on Cross-lingual Event-centric Open Analytics co-located with the 30th The Web Conference (WWW 2021).
The paper is available here: http://ceur-ws.org/Vol-2829/paper3.pdf
Extended dataset can be downloaded from here: https://zenodo.org/record/4592249
conda env create -f environment.yml python=3.6.12pip install wheel https://github.com/Xtra-Computing/thundersvm/releases/download/v0.3.4/thundersvm_cuda10.1-0.3.4-cp36-cp36m-linux_x86_64.whlvilbert-multi-task/data/pretrained/.vilbert-multi-task/data/.wget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_model.pthwget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_config.yamldata/python feature_extraction/extract_bert_en.py -d clef_en -m bertbase -p cleanpython feature_extraction/extract_bert_ar.py -m arabertpython feature_extraction/extract_sent_feats.py -d clef_en -m vgg19_finetuned_all -b 32python feature_extraction/extract_visual_feats.py -v resnet152 -t imgnet -d clef_enExtract bottom-up faster-RCNN features from images:
python vilbert-multi-task/script/extract_features.py --model_file vilbert-multi-task/data/detectron_model.pth --config_file vilbert-multi-task/data/detectron_config.yaml --image_dir data/lesa/images/ --output_folder data/lesa/rcnn_feats/python vilbert-multi-task/script/convert_to_lmdb.py --features_dir data/lesa/rcnn_feats/ --lmdb_file data/lesa/rcnn_lmdbs/Some images have no detectable objects. For those images, we take random crops and extract ResNet-152 last layer features. python vilbert_code/extract_missing_feats.py --dset lesa
Extract VilBert features: python vilbert_code/extract_features.py --model multi_task --dset lesa
-h to see optionspython svm_training/svm_textfeats.py --tfeat sumavg --tmodel bertbase --ttype clean --dset lesa --split 0python svm_training/svm_imgfeats.py --vfeat feats --vmodel resnet152 --vtype imgnet --dset lesa --split 0python svm_training/svm_imgText.py --tfeat sumavg --tmodel bertbase --ttype clean --vfeat feats --vmodel resnet152 --vtype imgnet --split 0python svm_training/svm_vilbertfeats.py --normalize 1 --feat pooled --model multi_task --dset lesapython finetune_bert.py --btype bertweet --dset clef_en --bs 4python finetune_bert.py --btype bertweet --dset lesapython finetune_bert.py --btype covid_twitter --dset mediaevalpython finetune_bert.py --btype arabert --dset clef_arpython finetune_vilbert.py --model image_ret --dset lesa --split 0 --un_fr 2 --pool addpython finetune_vilbert2.py --model image_ret --dset lesa --split 0 --un_fr 2If you find the shared resources useful, please cite:
@inproceedings{DBLP:conf/www/CheemaHME21,
author = {Gullal S. Cheema and
Sherzod Hakimov and
Eric M{\"{u}}ller{-}Budack and
Ralph Ewerth},
title = {On the Role of Images for Analyzing Claims in Social Media},
booktitle = {Proceedings of the 2nd International Workshop on Cross-lingual Event-centric
Open Analytics co-located with the 30th The Web Conference {(WWW}
2021), Ljubljana, Slovenia, April 12, 2021 (online event due to {COVID-19}
outbreak)},
series = {{CEUR} Workshop Proceedings},
volume = {2829},
pages = {32--46},
publisher = {CEUR-WS.org},
year = {2021},
url = {http://ceur-ws.org/Vol-2829/paper3.pdf}
}
Code and Dataset for paper "On the Role of Images for Analyzing Claims in Social Media" @2nd International Workshop on Cross-lingual Event-centric Open Analytics (CLEOPATRA) co-located with The Web Conf 2021
Python
5
43 commits
updated Sep 13, 2021
The repository for the source code and the dataset used in the paper
Gullal S. Cheema, Sherzod Hakimov, Eric Müller-Budack and Ralph Ewerth “On the Role of Images for Analyzing Claims in Social Media“, Proceedings of the 2nd International Workshop on Cross-lingual Event-centric Open Analytics co-located with the 30th The Web Conference (WWW 2021).
The paper is available here: http://ceur-ws.org/Vol-2829/paper3.pdf
Extended dataset can be downloaded from here: https://zenodo.org/record/4592249
conda env create -f environment.yml python=3.6.12pip install wheel https://github.com/Xtra-Computing/thundersvm/releases/download/v0.3.4/thundersvm_cuda10.1-0.3.4-cp36-cp36m-linux_x86_64.whlvilbert-multi-task/data/pretrained/.vilbert-multi-task/data/.wget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_model.pthwget https://dl.fbaipublicfiles.com/vilbert-multi-task/detectron_config.yamldata/python feature_extraction/extract_bert_en.py -d clef_en -m bertbase -p cleanpython feature_extraction/extract_bert_ar.py -m arabertpython feature_extraction/extract_sent_feats.py -d clef_en -m vgg19_finetuned_all -b 32python feature_extraction/extract_visual_feats.py -v resnet152 -t imgnet -d clef_enExtract bottom-up faster-RCNN features from images:
python vilbert-multi-task/script/extract_features.py --model_file vilbert-multi-task/data/detectron_model.pth --config_file vilbert-multi-task/data/detectron_config.yaml --image_dir data/lesa/images/ --output_folder data/lesa/rcnn_feats/python vilbert-multi-task/script/convert_to_lmdb.py --features_dir data/lesa/rcnn_feats/ --lmdb_file data/lesa/rcnn_lmdbs/Some images have no detectable objects. For those images, we take random crops and extract ResNet-152 last layer features. python vilbert_code/extract_missing_feats.py --dset lesa
Extract VilBert features: python vilbert_code/extract_features.py --model multi_task --dset lesa
-h to see optionspython svm_training/svm_textfeats.py --tfeat sumavg --tmodel bertbase --ttype clean --dset lesa --split 0python svm_training/svm_imgfeats.py --vfeat feats --vmodel resnet152 --vtype imgnet --dset lesa --split 0python svm_training/svm_imgText.py --tfeat sumavg --tmodel bertbase --ttype clean --vfeat feats --vmodel resnet152 --vtype imgnet --split 0python svm_training/svm_vilbertfeats.py --normalize 1 --feat pooled --model multi_task --dset lesapython finetune_bert.py --btype bertweet --dset clef_en --bs 4python finetune_bert.py --btype bertweet --dset lesapython finetune_bert.py --btype covid_twitter --dset mediaevalpython finetune_bert.py --btype arabert --dset clef_arpython finetune_vilbert.py --model image_ret --dset lesa --split 0 --un_fr 2 --pool addpython finetune_vilbert2.py --model image_ret --dset lesa --split 0 --un_fr 2If you find the shared resources useful, please cite:
@inproceedings{DBLP:conf/www/CheemaHME21,
author = {Gullal S. Cheema and
Sherzod Hakimov and
Eric M{\"{u}}ller{-}Budack and
Ralph Ewerth},
title = {On the Role of Images for Analyzing Claims in Social Media},
booktitle = {Proceedings of the 2nd International Workshop on Cross-lingual Event-centric
Open Analytics co-located with the 30th The Web Conference {(WWW}
2021), Ljubljana, Slovenia, April 12, 2021 (online event due to {COVID-19}
outbreak)},
series = {{CEUR} Workshop Proceedings},
volume = {2829},
pages = {32--46},
publisher = {CEUR-WS.org},
year = {2021},
url = {http://ceur-ws.org/Vol-2829/paper3.pdf}
}