This project contains all the code that is used to participate in the HATEVAL task of SEMEVAL-2019. The datasets can be found at https://github.com/msang/hateval/tree/master/SemEval2019-Task5/datasets.
If you use any content from the following repo, please cite the following paper.
Python >= 3.5
The arguments and the use can be found in run_model.py file.
python run_model.py -clf='nb' -train='TrainFilePath' -test='TestFilePath' -sep='Seperator'
Uncomment the stemmer lines in preprocess function in run_model.py and then run the following command:
python run_model.py -pre='T' -clf='nb' -train='TrainFilePath' -test='TestFilePath' -sep='Seperator'
Uncomment the 'import libglove.py' line in word_embeddings.py and then run the following command:
Comment the stemmer lines in preprocess function in run_model.py and then run the following command:
python run_model.py -clf='svm' -emsrc='glove' -train='TrainFilePath' -test='TestFilePath' -sep='Seperator'
Uncomment the 'import libinfersent.py' line in word_embeddings.py and then run the following command:
python run_model.py -clf='all' -emsrc='infersent' -train='TrainFilePath' -test='TestFilePath' -sep='Seperator'