Code-switching patterns can be an effective route to improve performance of downstream NLP applications: A case study of humour, sarcasm and hate speech detection
Here we have the code and data for the following paper: Code-switching patterns can be an effective route to improve performance of downstream NLP applications: A case study of humour, sarcasm and hate speech detection by Srijan Bansal, Vishal Garimella, Ayush Suhane, Jasabanta Patro, Animesh Mukherjee. Proceedings of ACL 2020
Our trained embedding: You can download the embedding here
ML model:
- Baseline: run
python grid_search_baseline.pyfrom Humour/ML/ - Switching: run
python grid_search_baseline_switching.pyfrom Humour/ML/
To run HAN:
- Baseline: run
python master_script_baseline_signal.pyfrom Humour/HAN/ - Switching: run
python master_script_switching_signal.pyfrom Humour/HAN/
To run ML model:
- Baseline & Switching: run
python grid_search.pyfrom Hate/ML/
To run HAN:
- Baseline: run
python grid_search_baseline.pyfrom Hate/HAN/ - Switching: run
python grid_search_switching.pyfrom Hate/HAN/
To run ML model:
- Baseline: run
python classification.pyfrom Sarcasm/ML/Baseline/ - Switching: run
python classification.pyfrom Sarcasm/ML/Switching/
To run HAN:
- Baseline: run
python grid_search_baseline.pyfrom Sarcasm/HAN/ - Switching: run
python grid_search_switching.pyfrom Sarcasm/HAN/