Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (22 sloc) 0.57 kb
#
# c.py
#
# Nick Loadholtes <nick@ironboundsoftware.com>
# An Experiment in clustering tweets
#
def clusterOnTweets(tweets):
"""Take the tweets, create clusters of similar tweets"""
words = []
clusters = []
for tweet in tweets:
text = tweet.text
wordlist = text.split(' ')
words.append(wordlist)
print(str(words))
#Loops through the words, bringing together similar scores
return clusters
if __name__ == "__main__":
print("Clustering experiment")
#Get tweets
tweets = []
clusterOnTweets(tweets)
Jump to Line
Something went wrong with that request. Please try again.