Stance-Detection-in-Web-and.../SEN-SVM
2019-06-20 01:39:47 +05:30
..
final_feature_set Add files via upload 2019-06-20 01:11:57 +05:30
README.md Update README.md 2019-06-20 01:39:47 +05:30
sentiment_api_2.py added SEN-SVM codes 2019-06-18 22:16:04 +05:30
STA_features.py added SEN-SVM codes 2019-06-18 22:16:04 +05:30
SVM_mpchi.py Update SVM_mpchi.py 2019-06-19 23:16:55 +05:30
SVM.py added SEN-SVM codes 2019-06-18 22:16:04 +05:30
te_f.py added SEN-SVM codes 2019-06-18 22:16:04 +05:30

Requirements

Python version - 3.6/3.7 with NLTK installed

Usage

To run the model for SemEval dataset : python SVM.py

To run the model for MPCHI dataset : python SVM_mpchi.py

The folder final_feature_set contains all extracted features. Note that medical feature has not been extracted for SemEval dataset.

The features can be extracted by running the 3 codes STA_features.py, te_f.py and Sentiment_API_2.py on individual datasets. While extracting the sentiment feature the StanfordCoreNLP server is needed to be run.