文本分類(4)——樸素貝葉斯

樸素貝葉斯 ef N_Bayes(testVector,method): #第二個表示你用哪個字典吧 for cate,corpus in testVector.items(): result={} print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), '>', cate) f
相關文章
相關標籤/搜索