diff --git a/SEN-SVM/SVM_mpchi.py b/SEN-SVM/SVM_mpchi.py index 8bc9b28..13cd1fb 100644 --- a/SEN-SVM/SVM_mpchi.py +++ b/SEN-SVM/SVM_mpchi.py @@ -224,7 +224,7 @@ def train(topic,bow=False,senti=False,sta=False,ent=False,med = False): # In[22]: -''' + #BOW print ('BOW---------') y_pred,y_test = [],[] @@ -368,7 +368,7 @@ for dataset in ['MMR','HRT','EC','VC','SC']: y_test.extend(b) print(len(a),len(b)) -print(classification_report(y_test,y_pred,labels=['support','oppose'],target_names=['support','oppose']))''' +print(classification_report(y_test,y_pred,labels=['support','oppose'],target_names=['support','oppose'])) y_pred,y_test = [],[] for dataset in ['MMR','HRT','EC','VC','SC']: @@ -377,4 +377,4 @@ for dataset in ['MMR','HRT','EC','VC','SC']: y_test.extend(b) print(len(a),len(b)) -print(classification_report(y_test,y_pred,labels=['support','oppose'],target_names=['support','oppose'])) \ No newline at end of file +print(classification_report(y_test,y_pred,labels=['support','oppose'],target_names=['support','oppose']))