Ejemplo n.º 1
0
def get_docs():
    # for now, just return a four-array for testing
    # TODO return array of actual tweets from tsv
    # TODO return using message objects
    #return ['Erik Holbrook is a cool guy','President Obama is also a cool guy.',
    #	'Peyton Manning won the Super Bowl last night.', 'He likes ice cream cold.']
    docs = []
    for message in streammanager("neel", "NEEL2016-training.tsv"):
        docs.append(message)
    return docs
Ejemplo n.º 2
0
def get_docs():
    # for now, just return a four-array for testing
    # TODO return array of actual tweets from tsv
    # TODO return using message objects
    # return ['Erik Holbrook is a cool guy','President Obama is also a cool guy.',
    # 	'Peyton Manning won the Super Bowl last night.', 'He likes ice cream cold.']
    docs = []
    for message in streammanager("neel", "NEEL2016-training.tsv"):
        docs.append(message)
    return docs
Ejemplo n.º 3
0
import sys

sys.path.append("..")

import bismol
from bismol import streaminterface
from bismol.streaminterface import streammanager
from bismol.streaminterface.streammanager import streammanager

for message in streammanager("neel", "NEEL2016-dev.tsv"):
    print message.source
    print message.url
    print message.text
Ejemplo n.º 4
0
import sys

sys.path.append("..")

import bismol
from bismol import streaminterface
from bismol.streaminterface import streammanager
from bismol.streaminterface.streammanager import streammanager

for message in streammanager("neel", "NEEL2016-dev.tsv"):
	print message.source
	print message.url
	print message.text