Skip to content

cryptexcode/folksonomication_source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of "Folksonomication: Predicting Tags for Movies from Plot Synopses using Emotion Flow Encoded Neural Network"

Project Home and Live Demo

Contributors

Dependencies

The code is written in Python 3.

Optional

Resource Map

├── data (Create the directory)
├── LICENSE
├── processed_data
│   ├── all_sequence_dict.json
│   ├── class_weights.json
│   ├── class_weights_sk.json
│   ├── emotion_lexicons_dict.pkl
│   ├── idx2word_no_process.json
│   ├── index_to_tag.json
│   ├── tag_to_index.json
│   ├── test_sequences_dict.json
│   ├── test_sequences_list.json
│   ├── train_sequences_dict.json
│   ├── train_sequences_list.json
│   ├── vectors
│   │   ├── emotion_score_dict_20_chunks.json
│   │   ├── labels_binary_dict.json
│   │   └── padded_word_sequences_1500.json
│   ├── vocab_5k_no_process.json
│   └── word2idx_no_process.json
├── README.md
└── source
    ├── Dataset.py
    ├── misc.py
    ├── models.py
    ├── notebooks
    │   └── Prepare Data.ipynb
    ├── outputs (Create the directory)
    ├── predict_tags.py
    ├── report.py
    ├── tf_logger.py
    ├── TorchHelper.py
    └── train.py

Usage

  1. Download the MPST Corpus.
  2. Unzip the data and put the MPST directory inside the data directory.
  3. Download the Fasttext pre-trained embeddings and edit the path in the code in the notebook.
  4. Use the data processor notebook located at source/notebooks/Prepare Data.ipynb to prepare the data for the model. The processed data would be dumped inside processed_data directory.
  5. After completing the processing, processed_data directory should look like below.
├── processed_data
│   ├── all_sequence_dict.json
│   ├── class_weights.json
│   ├── class_weights_sk.json
│   ├── emotion_lexicons_dict.pkl
│   ├── idx2word_no_process.json
│   ├── index_to_tag.json
│   ├── tag_to_index.json
│   ├── test_sequences_dict.json
│   ├── test_sequences_list.json
│   ├── train_sequences_dict.json
│   ├── train_sequences_list.json
│   ├── vectors
│   │   ├── emotion_score_dict_20_chunks.json
│   │   ├── labels_binary_dict.json
│   │   └── padded_word_sequences_1500.json
│   ├── vocab_5k_no_process.json
│   └── word2idx_no_process.json
  1. For training, use the train.py. It will dump the model and logs in the output directory set in the code.

Bibtex

@InProceedings{C18-1244,
  author = 	"Kar, Sudipta
		and Maharjan, Suraj
		and Solorio, Thamar",
  title = 	"Folksonomication: Predicting Tags for Movies from Plot Synopses using Emotion Flow Encoded Neural Network",
  booktitle = 	"Proceedings of the 27th International Conference on Computational Linguistics",
  year = 	"2018",
  publisher = 	"Association for Computational Linguistics",
  pages = 	"2879--2891",
  location = 	"Santa Fe, New Mexico, USA",
  url = 	"http://aclweb.org/anthology/C18-1244"
}
  • For any queries, please contact the first author at skar3 AT uh DOT edu

About

Source code for Folksonomication @ COLING 2018

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published