├── .gitignore ├── LICENSE ├── README.md ├── dataloader.py ├── detect_concepts.py ├── eval_cls_rnn.py ├── eval_ppl.py ├── eval_senti.py ├── method_figs ├── Architecture.png ├── Fine-tuning.png ├── Image Captioning with Inherent Sentiment.pdf └── Pre-training.png ├── models ├── __init__.py ├── captioner.py ├── concept_detector.py ├── decoder.py ├── encoder.py ├── sent_senti_cls.py ├── sentiment_detector.py └── sentiment_detector_full.py ├── opts.py ├── preprocess.py ├── self_critical ├── __init__.py ├── bleu │ ├── LICENSE │ ├── __init__.py │ ├── bleu.py │ └── bleu_scorer.py ├── cider │ ├── README.md │ ├── __init__.py │ ├── license.txt │ └── pyciderevalcap │ │ ├── __init__.py │ │ └── ciderD │ │ ├── __init__.py │ │ ├── ciderD.py │ │ └── ciderD_scorer.py ├── utils.py └── utils_bac.py ├── test_cpt.py ├── train_cpt.py ├── train_rl.py ├── train_sent_senti_cls_rnn.py ├── train_senti.py └── train_xe.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/README.md -------------------------------------------------------------------------------- /dataloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/dataloader.py -------------------------------------------------------------------------------- /detect_concepts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/detect_concepts.py -------------------------------------------------------------------------------- /eval_cls_rnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/eval_cls_rnn.py -------------------------------------------------------------------------------- /eval_ppl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/eval_ppl.py -------------------------------------------------------------------------------- /eval_senti.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/eval_senti.py -------------------------------------------------------------------------------- /method_figs/Architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/method_figs/Architecture.png -------------------------------------------------------------------------------- /method_figs/Fine-tuning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/method_figs/Fine-tuning.png -------------------------------------------------------------------------------- /method_figs/Image Captioning with Inherent Sentiment.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/method_figs/Image Captioning with Inherent Sentiment.pdf -------------------------------------------------------------------------------- /method_figs/Pre-training.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/method_figs/Pre-training.png -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/captioner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/captioner.py -------------------------------------------------------------------------------- /models/concept_detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/concept_detector.py -------------------------------------------------------------------------------- /models/decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/decoder.py -------------------------------------------------------------------------------- /models/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/encoder.py -------------------------------------------------------------------------------- /models/sent_senti_cls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/sent_senti_cls.py -------------------------------------------------------------------------------- /models/sentiment_detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/sentiment_detector.py -------------------------------------------------------------------------------- /models/sentiment_detector_full.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/models/sentiment_detector_full.py -------------------------------------------------------------------------------- /opts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/opts.py -------------------------------------------------------------------------------- /preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/preprocess.py -------------------------------------------------------------------------------- /self_critical/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /self_critical/bleu/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/bleu/LICENSE -------------------------------------------------------------------------------- /self_critical/bleu/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tylin' 2 | -------------------------------------------------------------------------------- /self_critical/bleu/bleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/bleu/bleu.py -------------------------------------------------------------------------------- /self_critical/bleu/bleu_scorer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/bleu/bleu_scorer.py -------------------------------------------------------------------------------- /self_critical/cider/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/cider/README.md -------------------------------------------------------------------------------- /self_critical/cider/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /self_critical/cider/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/cider/license.txt -------------------------------------------------------------------------------- /self_critical/cider/pyciderevalcap/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tylin' 2 | -------------------------------------------------------------------------------- /self_critical/cider/pyciderevalcap/ciderD/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tylin' 2 | -------------------------------------------------------------------------------- /self_critical/cider/pyciderevalcap/ciderD/ciderD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/cider/pyciderevalcap/ciderD/ciderD.py -------------------------------------------------------------------------------- /self_critical/cider/pyciderevalcap/ciderD/ciderD_scorer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/cider/pyciderevalcap/ciderD/ciderD_scorer.py -------------------------------------------------------------------------------- /self_critical/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/utils.py -------------------------------------------------------------------------------- /self_critical/utils_bac.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/self_critical/utils_bac.py -------------------------------------------------------------------------------- /test_cpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/test_cpt.py -------------------------------------------------------------------------------- /train_cpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/train_cpt.py -------------------------------------------------------------------------------- /train_rl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/train_rl.py -------------------------------------------------------------------------------- /train_sent_senti_cls_rnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/train_sent_senti_cls_rnn.py -------------------------------------------------------------------------------- /train_senti.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/train_senti.py -------------------------------------------------------------------------------- /train_xe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ezeli/InSentiCap_model/HEAD/train_xe.py --------------------------------------------------------------------------------