File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
Expand file tree Collapse file tree 3 files changed +1
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 66# USE FOR PYTHON 3 only
77import nltk
88import sys
9- from sys import exit
109import pickle
1110
1211pos_tweets = [('I love this car' , 'positive' ),
@@ -77,7 +76,7 @@ def extract_features(document):
7776
7877# optional to save your classifier so you can load it
7978# elsewhere without having to rebuild training set every time
80- save_classifier = open ("tweetposneg.pickle" , "wb" )
79+ save_classifier = open ("assets/ tweetposneg.pickle" , "wb" )
8180pickle .dump (classifier , save_classifier )
8281save_classifier .close ()
8382
@@ -103,4 +102,3 @@ def extract_features(document):
103102 else :
104103 poscount = poscount + 1
105104 print ('Positive count: %s \n Negative count: %s' % (poscount , negcount ))
106- exit ()
You can’t perform that action at this time.
0 commit comments