It's working! ...partially. Read in 26000 messages, built the dictionary and actually made a match based on a message. Need to save corpus and dictionary so they aren't created every time.