예제 #1
0
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)
예제 #2
0
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"