예제 #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()
예제 #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') 
예제 #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')
예제 #5
0
파일: dashboard.py 프로젝트: DenelDuck/eca
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('worldcupfinal_2014.txt', 'tweet', time_factor=10000)
예제 #6
0
def setup(ctx, e):
    start_offline_tweets('xfactor.txt', event_name='chirp', time_factor=10000)
예제 #7
0
파일: template.py 프로젝트: stevegroes/BATA
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)
예제 #9
0
파일: wordcloud.py 프로젝트: utwente-db/eca
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets("data/bata_2014.txt", "chirp", time_factor=100000)
    ctx.words = {}
예제 #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')
예제 #11
0
def setup(ctx, e):
    ctx.count = 0
    fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=None))
예제 #12
0
def setup(ctx, e):
    start_offline_tweets('batatweets.txt', 'chirp', time_factor=100000)
    ctx.count = 0
    fire('timer')
예제 #13
0
def setup(ctx, e):
    start_offline_tweets('bata_2014.txt')
예제 #14
0
파일: media.py 프로젝트: stevegroes/BATA
def setup(ctx, e):
	fire('tweet', start_offline_tweets('data/bata_2014.txt', time_factor=10000000))
예제 #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')
예제 #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')
예제 #17
0
def setup(ctx, e):
    ctx.choice = "e"
    start_offline_tweets('bata_2014.txt', event_name="unfiltered_tweet")
예제 #18
0
def setup(ctx, e):
    start_offline_tweets('sports.txt', event_name='chirp', time_factor=None)
예제 #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')
예제 #20
0
def setup(ctx, e):
    # start the offline tweet stream
    start_offline_tweets('data/bata_2014.txt', 'chirp', time_factor=100000)
    ctx.words = {}
예제 #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)