def main(): a = 7 b =5.8 c =1.3 classify = Classifier() classify.categorisetweets() cleanUpTrainingSet(a,b,c,"sports") cleanUpTrainingSet(a,b,c,"politics") validate = Validator() validate.validateToFile(r'test.txt','OutputTest.txt',a,b,c)
def main(): a =7.5 b =5.8 c =1.3 print "Running Twit Miner , Please wait for some moment " classify = Classifier() classify.categorisetweets() cleanUpTrainingSet(a,b,c,"sports") cleanUpTrainingSet(a,b,c,"politics") validate = Validator() validate.validateToFile(r'test.txt','OutputTest.txt',a,b,c)
def main(): #has to be executed only once addTrainingToTweets() a = 7 b = 5.8 c = 1.3 print "Please Be patient while we make things ready will take around 2 mins" classify = Classifier() classify.categorisetweets() validate = Validator() validate.validateToFile(r'validation.txt', 'Outputvalidation.txt', a, b, c) for i in range(5): cleanUpTrainingSet(a, b, c, "sports") cleanUpTrainingSet(a, b, c, "politics") classify = Classifier() classify.categorisetweets() validate = Validator() validate.validateToFile(r'test.txt', 'OutputTest.txt', a, b, c) print str((i + 1) * 100 / 5) + "% complete" print "Awesome you are done.\nNow you can run RunTwitMiner.py as many time you want :) \nNote the inpu file for the program should be in validation.txt and you will get the output in OutputTest.txt"
def main(): #has to be executed only once addTrainingToTweets() a =7.5 b =5.8 c =1.3 print "Please Be patient while we make things ready will take around 5 mins\nGrab a coffee till then" classify = Classifier() classify.categorisetweets() for i in range(3): cleanUpTrainingSet(a,b,c,"sports") cleanUpTrainingSet(a,b,c,"politics") classify = Classifier() classify.categorisetweets() validate = Validator() validate.validateToFile(r'training.txt','Outputtraining.txt',a,b,c) cleanUpTrainingSet(a,b,c,"sports") cleanUpTrainingSet(a,b,c,"politics") classify = Classifier() classify.categorisetweets() validate = Validator() validate.validateToFile(r'validation.txt','Outputvalidation.txt',a,b,c) cleanUpTrainingSet(a,b,c,"sports") cleanUpTrainingSet(a,b,c,"politics") classify = Classifier() classify.categorisetweets() validate = Validator() validate.validateToFile(r'test.txt','OutputTest.txt',a,b,c) print str((i+1)*100/3) +"% complete" print "Awesome you are done.\nNow you can run RunTwitMiner.py as many time you want :) \nNote the input file for the program should be in test.txt and you will get the output in OutputTest.txt"