Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions OutputText.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
o f v a n m y . F l o r i d a v a n M a n . F l o r i d a C a n ’ t M a n P r o d u c e C a n ’ t D r i v e r ’ s P r o d u c e L i c e n s e D r i v e r ’ s . @ t h e c e s h e r L i c e n s e w o u l d n ' t . @ t h e c e s h e r b e w o u l d n ' t t h e b e f i r s t t h e t i m e . . F l o r i d a f i r s t M a n t i m e . . F l o r i d a S i c k M a n A n d S i c k T i r e d A n d o f T i r e d P e o p l e o f P u t t i n g P e o p l e L o g s P u t t i n g A c r o s s L o g s B i k e A c r o s s P a t — O h , B i k e N e v e r
Empty file modified README.md
100644 → 100755
Empty file.
Binary file added TextMining.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions database.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Florida Man Naked Florida Man Found in Model Home .Florida Man Pulls Shark From Water So Friend Can take Picture of Him Humping It .Florida Man Brawls in Pizzeria Over Cheese-Covered Garlic Knots .@DeathsquadBris No, this time it’s just made up .We should have clapped....Goodnight, sweet prince .Florida Man Becomes First Person in America to Crash $1.4 Million Car .Florida Man Bored, Calls 9-11 to Talk About Hitler .America. .18-Year-Old Florida Man Arrested for Posing as Doctor, Opening Fake Doctor’s Office .@JimMcIlvaine Because it's not real. .@BoingBoing You neglected to mention this happened 11 years ago.Florida Man Slips While Riding Hoverboard, Accidentally Shoots Cousin .Florida Man Ordered to Stay Away From Animals After Throwing Live Alligator Through Wendy’s Drive-Thru Window .[✓]TSA line
[✓]American flag
[✓]Naked man hanging off balcony

Welcome to Orlando Airport.

(via @@selby_sullivan) ..Florida Man Apologizes For Repeating Himself Too Much; Immediately Repeats Himself .Florid Man Charged With Assault With a Deadly Weapon After Throwing Alligator Through Wendy’s Drive-Thru Window .Has anyone tried turning him off and on again?.Florida Man Gets Stuck on Repeat .Florida Man Says He Stripped Naked and Walked Down Street Because Jesus Told Him To .Florida Man Loses Car Keys, Accidentally Locks Himself in Trunk While Looking For Them .Hide your kids... .Florida Man Main Suspect After Spate of Goat Rapes .Florida Man Holds up Trio Dumpster Diving for Lottery Tickets .Florida Man Pulls Down Pants in Hospital and Begins Yelling About Size of His Penis .Florida Man Found in Hotel Room With Dead Body, Two Live Monkeys .Whichever one wins this fight gets to be on the side of my van .Florida Man Attacks Wal-Mart Employee With Potato Chips .Kind of amazing to see two guys from Florida fighting and neither of them are wearing jean shorts .Apparently Florida Man Sucks Whether Donald Trump Is There or Not .Florida Man Loses Part of Lip Trying to Make Out With Wild Bird of Prey .RT @_Flor1daWoman: 100-Year-Old Florida Woman Wakes Up With Exotic Animal on Chest .Florida Man Leaves Job at Burger King, Steals "All Their Nuggets" Because "Fuck It" .Florida Man Can’t Produce Driver’s License For Police, Shows Them Mixtape Instead .Florida Man Says He Killed Crossing-Dressing Vodou Priest Because He Was Threatening Him With “Magic” .Florida Man Steal $1,900 Dog, Trades It for Crack .RT @_Flor1daWoman: Florida Woman Tells Police She Has No Idea How Drugs Got Into Her Genitals .Florida Man Fired From Burger King; Walks Outside and Sets Uniform on Fire .Florida Bond villains are the worst Bond villains.

.Florida Man Punches Neighbor For Refusing to Have Drink With Him .Wide Shot Reveals Florida Man Apparently Also at Debate .Florida Man Spends $146,000 on Powerball Tickets, Wins Pretty Much Nothing .Florida Man Applies For Job as Head Coach of Tampa Bay Buccaneers, Cites “Fantasy Football” Experience .Vomit-Covered Florida Man Hands Police Ruby Tuesday’s Coupon Instead of Driver’s License .@thecesher wouldn't be the first time..Florida Man Sick And Tired of People Putting Logs Across Bike Pat—Oh, Never Mind .@NickFierro I traveled back in time and posted this two weeks ago .Florida Man Gives Police Fake Name to Try and Avoid Arrest, Fake Name Has DUI .Happy New Year! And sorry in advance, @JebBush..Florida Man Pees on Neighbors Car, Watches Him Touch It From Bushes .RT @_Flor1daWoman: Florida Woman Eats Cinnamon Rolls and Rotisserie Chicken While Driving Drunk Through Walmart on Motorized Scooter .When your joke kills but you're still dead inside .Florida Man Crashes Car Into Business While Trying to “Time Travel” .Florida Man’s Farts Get Wife Arrested .Florida Man Poops Over Side of Boat as Police Are Trying to Arrest Him for Interfering With Manatees .Florida Man Won’t Let Small House Stand in the Way of Big Christmas (via @JohnFugelsang / @NYCanegirl) .Florida Man Says He Shoplifted Butt Plug Because He Was “Too Embarrassed” to Pay .@vincetraylor A lot like not making it..Florida Man Rams Car Into Jail, Says He "Just Wanted to Visit Friends” .Florida Man Gets Lost at Sea While Riding Jet-Ski, Snapchats (via @msaucer94) ..LET’S MAKE THIS HAPPEN ..Florida Man Surrenders Marijuana Crop to Police Chopper, Later Learns It Wasn’t Looking for Him .Florida Man Caught Driving Cadillac Naked at 110 mph in the Middle of the Afternoon .Florida Man Hides From Deputies in Swamp, Eaten by Alligator .Florida flood water could be filled with lions .Florida Man Hits Cyclist With Truck While Receiving Oral Sex .RT @AP: Florida man chokes to death while eating steak during his birthday: .Florida Man Witnesses Knife Attack at Art Basel, Does Nothing Because He Thinks It's Art .Florida Man Crawls Under Cracker Barrel Bathroom Stall to Ask 79-Year-Old Woman to Have Sex With Him .Florida Man Claims To Be “DUI Expert”, Charged With DUI .Florida Man Paints Donald Trump's Campaign Slogan on Elephant (via @TalKopan) .Florida Man Tells Police He’s So Drunk He’ll Blow Up Breathalyzer .Florida Man Tries to Rob Convenience Store While Dressed as Darth Vader .Florida Man Says He Doesn’t Remember Walking Into Honda Dealership, Loading TVs Into SUV, Driving Through Glass Door .(h/t @pourmecoffee & @ryangabrielson).Can’t believe a story with the words “Florida” and “power-saw wielding” in the headline actually has a happy ending .Florida Man Tries to Pay $4,000 Ethics Fine With 28 Buckets of Loose Change .Florida Man Assaulted Girlfriend With Banana Because She Refused to Help Him Detoxify His Urine .RT @_Flor1daWoman: Florida Woman Takes Pants-Less Nap In Grease Dumpster .Florida Man Hellbent on Catching, Eating Shark That Bit Him .Florida Man Accidentally Shoots Woman in Head While Receiving Oral Sex .RT @_Flor1daWoman: Florida Woman Calls 911 to Demand Chicken Wings and Cigarettes ..Florida, we have a new state flag. .Florida Man Reacts to Buccaneers Loss by Trying to Set Their 80-Foot Flag on Fire .Florida Man Sneaks Out Of Drunk Driving Seminar to Go Drink—Later Found Stumbling Around Hotel in Only His Underwear .Florida Man Too Drunk to Collect Prize From Mothers Against Drunk Driving .Florida Man Told to Pull Over by Police For Driving Drunk, Crashes Into Rod Stewart’s Mailbox .North posted this while playing games on my phone. Not sure why or how she chose it but I'm not complaining! .Florida Man Becomes Town’s New Mayor After Winning Card Game .Florida Man Says He Would Give Alcohol to Underage Muslim Teen, Still Wants to Be President .Florida Man Caught Watching Porn On Cell Phone While Teaching 9th Grade Reading Class .Florida Man Upstaged by Woman With Sticker on Head

(via @TheFix) .Florida Man Involved in Accidental Shooting at Cracker Barrel .Florida Man Waves at Customers While Masturbating Outside Grocery Store .Ladies and gentlemen, Florida Man .Florida Man Might Be World's Worst Children's Clown .Waiting for those post-Halloween Florida news stories to come in like ."According to the report, Valle caused $420 in damage.” Tight. .Hello, old friend. .“How do you do, fellow kids?” .Florida Man Won't Let Lack of Pants Stop Him From Enjoying Saturday Night Domino's (via @mollychance) .@SammonSez @MenInBlazers I also nominate myself..Florida Man Caught with 2,000 Amphetamines, Claims They're For Erectile Dysfunction .Florida Man Found Hiding in Bush Outside Kangaroo Express, Claims He Created, Owns World .Police Arrest Wanted Florida Man After He Butt-Dials 911 .SWAT Team Forced to Wait Outside as Florida Man and Girlfriend Have Sex “One Last Time” .Florida Man Emails Ex-Girlfriend Video of Himself Having Sex With Puppy .Florida Man Poses as Police Officer, Pulls Over Real Deputy .Florida Man Get DUI While Riding Motorized Wheelchair .RT @_Flor1daWoman: Florida Woman Broadcasts Drunken Crash on Periscope .Florida Man Involved in High-Speed Chase With Police, Claims Dog Was Driving .RT @_Flor1daWoman: Florida Woman Accidentally Superglues Eye Shut .Florida Man Sets Up Series of Fake Job Interviews to Steal People’s Urine .Florida Man Walks Into Grocery Store With Human Skull .Florida Man Dances on Hood of Car in 7-Eleven Parking Lot While Swigging Brandy, Says It’s His “Chilling Day” .Florida Man Says He Spends 8 Hours a Day Trying to Regrow His Foreskin .Florida Man Admits Killing Goat and Drinking Its Blood For Pagan Sacrifice, Would Still Like to be Senator .Florida Man Denies Mutilating Goat; Says He Only Took Part in Religious "Animal Sacrifice”, Still Running For Senate .Florida Man Hopes New Invention Will Put an End to "Toilet Balls” .Florida Man Texts on His Phone Despite Being in Middle of High-Speed Motorbike Chase .Florida Man Files Patent to Let Everyone Know He Has Giant Balls .Monkey Partakes in Great Florida Tradition, Rampages Through Suburban Neighborhood .Florida Man Says He Only Stole Spoon to Eat Captain Crunch .Florida Man Tries to Insert Rectal Thermometer Into Woman's Anus During "Job Interview” .Florida Man Arrested After Alligator Hide Found Drying in Backyard of Frat House .Florida Man Steals 4 Million Pounds of Citrus .Florida Man Throws Liter of Urine in Deputy's Face .Florida Man Tries to Pawn Amp at Same Store He Stole it From .RT @HuskerExtraBC: Gotta say: This guy is all in. .Florida Man Breaks Into Bar, Defecates on Floor For Some Reason .Florida Man Makes Joke So Bad It Gets Him Banned From Disney For Life .Lame Dad Joke Gets Florida Man Banned From Disney For Life .Smoking Pot Hasn’t Made Florida Man Cool .Florida Man Did Drugs .Florida Man Pulls Gun During Road Rage Incident, Accidentally Shoots Himself .Florida Man Leads Police on Scooter Chase After He's Suspected of Sniffing Women’s Feet in Library .Florida Man Seen Crawling Around Under Library Tables Sniffing People's Feet .Florida Man Crashes Into Kayak Because He Was Distracted by Selfie Stick .Florida Man Looking For Drugs, Accidentally Texts Sheriff Instead of Dealer .Florida Man Doing A LOT of Trollin’ Today .Florida Man Plots Fake Terrorist Attack Because, I Don’t Know, Ethics in Games Journalism...Or Something? I Give Up. .RT @_Flor1daWoman: Florida Woman Calls Police to Report “Hurt Feelings” .@AlanCShaw I was robbing Publix before it was cool..Florida Man With Socks on Hands Denies Burglarizing Home, Says He Was Invited in For Gatorade .Florida Man Accused of Blinding Police Helicopter Pilot With Hair Growth Laser Comb .Florida: where the chance this is some criminal's nickname and the chance it's actually a cobra are exactly the same .Florida Man Shoots Unarmed Black Man, Blames George Zimmerman .Florida Man Passes Out in KFC Drive-Thru After Compressed Air Bender .Florida Man Challenges Tow Truck to Tug of War, Loses .Florida Man Attacks Mother With Potato Salad .RT @_Flor1daWoman: Florida Woman Hires Hitman to Kill Man Who Gave Her Grandkids Lice .@futurephobic No he didn’t. That photo is from a Portuguese stock image company. .Florida Man Claims “Anchor Babies” Isn’t Offensive…Especially If You’re Talking About “Asians” .Florida Man Shits on Church .Smart. .Florida Man Hits Kid in Face With Football, Still Wants to be President .Florida Man Continues Quest to Become Nation’s Greatest Troll .Florida Man in Wolf Mask Rides Unicycle in Swimming Pool Because Sure, Why Not? .Florida Man Forgets How Football Works .RT @_Flor1daWoman: Florida Woman Blames Car Crash on Dog, Tells Police She Wants It Arrested .Florida Man Breaks Into House; Steals TV, Xbox, Cool Ranch Doritos, Bottle of Gatorade and Half a Subway Sandwich .S.W.A.T. Team Uses Bucket to Rescue Florida Man From Tree .Florida Man Goes to Police to Report Stolen Drugs .Florida Man Walks Off Live TV Because He’s Had Enough of the Kardashians .Florida Man Wrecks Budweiser Truck; Thankfully No Beer is Lost, Just Bud Light .Florida Man Flips Truck Full of Bud Light Because He Was Distracted by His Adorable Puppy .World Spared Delivery of Bud Light Thanks to Valiant Intervention by Florida Man’s Dog .@mikeziegler nah son .Florida Man Steals “32 Gallons” of Underwear .Florida Man Caught Graffitiing Own Name on Cop Cars ↑.Florida Man Arrested For Graffitiing Own Name on Cop Car ..Florida Man Has Friend Mail Him Rattlesnake in Coffee Can .Florida Man Wants to Know if Anyone Has Seen His Giant 🍌 .Florida Man Tells Police Girlfriend is Out of Town and He Misses Her and That’s Why He Was Masturbating on Beach .Florida Man Asks Public For Help Looking For His 18-Foot Banana .Hey @pzfeed. Please go fuck yourself you tweet-stealing cum drinkers. .Florida Man Can’t Believe He's the Least Crazy Person on Stage .Florida Man Tell Police He’s Sexually Aroused by ‘My Little Pony’ ..@TBrigham Sorry art..Florida Man Poses as Doctor, Leaves Patient With Deformed, 1-Inch Penis .Flooding Gets Better of Florida Man .RT @GQMagazine: Weather report interrupted by @_FloridaMan catching fish in street with his bare hands .Armed With Steak Knife, Florida Man Mistakenly Carjacks Undercover Cop .Weather Report Interrupted by Florida Man Catching Fish in Street With Bare Hands .Florida Man Accidentally Shoots 12-Year-Old Daughter in Arm While Trying to Teach Her About Gun Safety .@JaredMay76 Actually you can, that story is fake: .Police Catch Florida Man Trying to Chew Off Own Fingerprints .Florida Man Breaks Into House, Found Sleeping on Couch After Eating Too Many Chicken Wings .Police Try to Stop Florida Man From Playing ‘Star-Spangled Banner’ on 4th of July, Fail .Florida Man Walks Through Town Naked While Holding Cup of Vodka Cranberry .Florida Man Injured By Shrapnel From Dryer He Filled With Explosives .Florida Man Tells Homeowners It’s Illegal For BBQ Smell to Leave Their Property .Florida Man Pauses Police Chase to Rehydrate With Stolen Capri Sun, Says Smoking Crack Makes Him Thirsty .Florida Man Stands in Middle of McDonald’s Drive-Thur Lane, Masturbates .WWE Wants You to Forget it Ever Had Anything to Do With Florida Man .
62 changes: 62 additions & 0 deletions generate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import json
import random

with open('twitter.txt') as data_file:
data = json.load(data_file)
seed = [data[x]['text'].encode('UTF-8') for x in xrange(len(data))]
seedstring = 'Florida Man '
for x in xrange(len(seed)):
seedstring += seed[x].split('http', 1)[0] + '.'
with open("database.txt", "w") as text_file:
text_file.write(seedstring)


class Markovgenerator(object):
"""Generates pseudo random text with markov chains. Math!"""
def __init__(self, input_file):
self.cache = {}
self.input_file = input_file
self.words = self.file_to_words()
self.word_size = len(self.words)
self.database()

def file_to_words(self):
data = open(self.input_file, 'r')
datashtring = data.read().decode('utf-8')
words = datashtring.split()
data.close()
return words

def triples(self):
if len(self.words) < 3:
return

for i in range(len(self.words) - 2):
yield (self.words[i], self.words[i+1], self.words[i+2])

def database(self):
for (word1, word2, word3) in self.triples():
key = (word1, word2)
if key in self.cache:
self.cache[key].append(word3)
else:
self.cache[key] = [word3]

def generate_markov_text(self, size=25, *start_seed):
seed = random.randint(0, self.word_size-3)
seed_word, next_word = self.words[seed], self.words[seed+1]
if start_seed:
seed_word, next_word = start_seed[0], start_seed[1]
word1, word2 = seed_word, next_word
generated_text = []
for i in xrange(size):
generated_text += word1
word1, word2 = word2, random.choice(self.cache[(word1, word2)])
generated_text += word2
return " ".join(generated_text)

starting_data = Markovgenerator('database.txt')
output_text = starting_data.generate_markov_text(25).encode('utf-8')
print output_text
with open("OutputText.txt", "w") as text_file:
text_file.write(output_text)
9 changes: 9 additions & 0 deletions markov-text-master-text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Florida Man Hits Kid in Deputy's Face
Florida Man Accidentally Shoots Unarmed Black Man, Blames George Zimmerman
W

Florida Man Breaks Into Kayak Because He Was Driving
Florida Man Poops Over Cheese-Covered Garlic Knots

Flooding Gets Stuck on Elephant (via @mollychance)

4 changes: 4 additions & 0 deletions markov-text-master/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.pyc
*.db
*.txt
.DS_Store
21 changes: 21 additions & 0 deletions markov-text-master/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Rob Dawson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading