Esempio n. 1
0
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()
Esempio n. 2
0
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') 
Esempio n. 4
0
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')
Esempio n. 5
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('worldcupfinal_2014.txt', 'tweet', time_factor=10000)
Esempio n. 6
0
def setup(ctx, e):
    start_offline_tweets('xfactor.txt', event_name='chirp', time_factor=10000)
Esempio n. 7
0
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)
Esempio n. 9
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets("data/bata_2014.txt", "chirp", time_factor=100000)
    ctx.words = {}
Esempio n. 10
0
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')
Esempio n. 11
0
def setup(ctx, e):
    ctx.count = 0
    fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=None))
Esempio n. 12
0
def setup(ctx, e):
    start_offline_tweets('batatweets.txt', 'chirp', time_factor=100000)
    ctx.count = 0
    fire('timer')
Esempio n. 13
0
def setup(ctx, e):
    start_offline_tweets('bata_2014.txt')
Esempio n. 14
0
def setup(ctx, e):
	fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=10000000))
Esempio n. 15
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('data/batatweets.txt',
                         'chirp',
                         time_factor=10000,
                         arff_file='data/batatweets.arff')
Esempio n. 16
0
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')
Esempio n. 17
0
def setup(ctx, e):
    ctx.choice = "e"
    start_offline_tweets('bata_2014.txt', event_name="unfiltered_tweet")
Esempio n. 18
0
def setup(ctx, e):
    start_offline_tweets('sports.txt', event_name='chirp', time_factor=None)
Esempio n. 19
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('data/batatweets.txt', 'chirp', time_factor=10000, arff_file='data/batatweets.arff')
Esempio n. 20
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('data/bata_2014.txt', 'chirp', time_factor=100000)
    ctx.words = {}
Esempio n. 21
0
def setup(ctx, e):
    ctx.count = 0
    fire('sample', {'previous': 0.0})
    start_offline_tweets('eca/data/xfactor.txt', 'alltweets', time_factor=10000)