def setup(ctx, e): # start the offline tweet stream start_offline_tweets('data/data.txt', 'chirp', time_factor=1000000) ctx.words = {} temp_file = open("data/words.txt", "r") ctx.filter_words = temp_file.readlines() temp_file.close()
def setup(ctx, e): ctx.counttweets = 0 ctx.allhashtags = [] ctx.hashtagscounts = [] fire('activity') start_offline_tweets('data/bata_2014.txt', time_factor=1000000) ctx.words = {}
def setup(ctx, e): start_offline_tweets('bata_2014.txt', 'chirp', time_factor =100000,arff_file='geclassificeerd.arff') ctx.count = 0 ctx.prev = 0 ctx.ans = 0 ctx.pos_neg = [0,0,0] fire('counter', {'delay': 0.05, 'sum': 0, 'list': []}) fire('tick')
def setup(ctx, e): #tweets = getTweetsArray() start_offline_tweets('p2000.txt', time_factor=75, event_name='start1') start_offline_tweets('p2000.txt', time_factor=75, event_name='start2')
def setup(ctx, e): # start the offline tweet stream start_offline_tweets('worldcupfinal_2014.txt', 'tweet', time_factor=10000)
def setup(ctx, e): start_offline_tweets('xfactor.txt', event_name='chirp', time_factor=10000)
def setup(ctx, e): ctx.count = 0 start_offline_tweets('data/bata_2014.txt', time_factor=10000000)
def setup(ctx, e): ctx.counttweets = 0 fire('sample', {'previous': 0.0}) start_offline_tweets('data/bata_2014.txt', time_factor=10000)
def setup(ctx, e): # start the offline tweet stream start_offline_tweets("data/bata_2014.txt", "chirp", time_factor=100000) ctx.words = {}
def setup(ctx, e): '''The code that will be executed at initialization: starting the offline tweet stream.''' start_offline_tweets('cadabata_static/batatweets.txt', 'tweet', time_factor=100000, arff_file='classifiers/bata_2014_classifier.arff')
def setup(ctx, e): ctx.count = 0 fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=None))
def setup(ctx, e): start_offline_tweets('batatweets.txt', 'chirp', time_factor=100000) ctx.count = 0 fire('timer')
def setup(ctx, e): start_offline_tweets('bata_2014.txt')
def setup(ctx, e): fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=10000000))
def setup(ctx, e): # start the offline tweet stream start_offline_tweets('data/batatweets.txt', 'chirp', time_factor=10000, arff_file='data/batatweets.arff')
def setup(ctx, e): # set filter as empty string ctx.filter = "" # start the tweet reading from weer.txt start_offline_tweets('weer.txt', time_factor=10000, event_name='read_tweet')
def setup(ctx, e): ctx.choice = "e" start_offline_tweets('bata_2014.txt', event_name="unfiltered_tweet")
def setup(ctx, e): start_offline_tweets('sports.txt', event_name='chirp', time_factor=None)
def setup(ctx, e): # start the offline tweet stream start_offline_tweets('data/bata_2014.txt', 'chirp', time_factor=100000) ctx.words = {}
def setup(ctx, e): ctx.count = 0 fire('sample', {'previous': 0.0}) start_offline_tweets('eca/data/xfactor.txt', 'alltweets', time_factor=10000)