represents a tweet which if added to the buffer queue
between the TwitterStreamingAPI and the NewTweetsHandler
and if read by the NewTweetsHandler, it stops processing
tweets in the queue and terminates
processes the input tweet and produces an output
in a standard way such that is can be
used by the BayesClassifier
and the BayesLearner
the input string:
"@foo hahaha! I agree with you TOTALLY :-) http://cnn.com/"
will output the following :
"_USERNAME _LAUGH! agree totally :-) _URL _ALL_CAPS"
this function uses other functions in the class
in a certain to perform atomic processing.
This represents a thread that is responsible for reading input commands from
the user dynamically and changing the behaviour of the program on the fly
input commands include changing how many days should the tweets remain
in the DB, adding more swear words and shutting the server down