Talk:Machine Learning

From Noisebridge
Jump to navigation Jump to search

Feb. 27, 2014

Folks met and hacked on the noisebridge discuss mailing list. We created a 93MB text dump, and a python script to parse it, File:Py-piper-parser.txt. We wrote pseudo code to implement a Naive Bayesian filter to protect the world from trolls. Will implement soon.


Word parsing python script

  1. Function 'get_words' takes list of dictionary of emails.
  2. Yields:
  3. Lists of words of in the message, for each message.

def get_words(lst):

 for d in lst:
   m = d['messageline']
   yield m.split()