예제 #1
0
def tdm(request, txt):
    st = time.time()
    nbc = NaiveBayesClassifier(Drive())
#     test_classifer(nbc)
    c = nbc.whichclass(txt)
    return HttpResponse('%ss  %s'%(time.time()-st, c))