Skip to content

Instantly share code, notes, and snippets.

package main
import (
"github.com/matburt/vindinium-go-engine"
"fmt"
)
var (
client vindinium.Client
)
@tedwards
tedwards / nltk_service_bayes.py
Created February 1, 2013 03:49
Bayesian assessment of TRAC tickets using nltk
#!/usr/bin/env python
import sys
import time
import smtplib
@tedwards
tedwards / service_bayes.py
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):
'''
Input
aTicket: a ticket pulled from trac db stored as a list with the following fields
id, summary, type, status, service, created_date, lastu