Skip to content

Instantly share code, notes, and snippets.

package main
import (
var (
client vindinium.Client
tedwards /
Created February 1, 2013 03:49
Bayesian assessment of TRAC tickets using nltk
#!/usr/bin/env python
import sys
import time
import smtplib
tedwards /
Created January 31, 2013 18:32
Attempt at bayesian assessment of tickets store in TRAC
def service_bayes(aTicket, context_words, word_count, context_tickets, ticket_count):
aTicket: a ticket pulled from trac db stored as a list with the following fields
id, summary, type, status, service, created_date, lastu