This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import string | |
from twython import Twython | |
twitter = Twython('Insert Consumer Key Here', | |
'Insert Consumer Secret Key',oauth_version=2) | |
Access_token = twitter.obtain_access_token() | |
t = Twython('Insert Consumer Key', access_token=Access_token) | |
user_timeline = t.search(q='@puremichigan', count=20, include_rts=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import nltk | |
import re | |
import pprint | |
from nltk import word_tokenize | |
from nltk.tokenize import RegexpTokenizer | |
import numpy as np | |
tokenizer = RegexpTokenizer(r'\w+') #this is important because it takes out the punctuation that Python can't read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import string | |
from twython import Twython | |
twitter = Twython('Insert Consumer Key Here', | |
'Insert Consumer Secret Key',oauth_version=2) | |
Access_token = twitter.obtain_access_token() | |
t = Twython('Insert Consumer Key', access_token=Access_token) | |
#MAKE THE QUERY TO TWITTER TO PULL THE DATA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -mx1000m -jar stanford-ner.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -mx1000m -jar stanford-postagger.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python standalone.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "NAME OF YOUR PROJECT/repeatable_content.html" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Extend your file up here--> | |
{% block head-title %} | |
Your title | |
{% endblock %} | |
<!--insert your body content code down here--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="item"> | |
<ul> | |
<li class = "big_title"><b>More Information: <a href = "{% url 'cafe' cafe.url %}">{{cafe.cafe}}</a></li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url(r'^cafe/(?P<location>[a-z0-9\-]+)/$', views.cafe, name='cafe'), |
OlderNewer