{"id":72146,"library":"jbrukh-bayesian","title":"Bayesian Classifier","description":"Package bayesian is a Naive Bayesian Classifier for Go.","status":"active","version":"1.1.0","language":"go","source_language":null,"source_url":"https://github.com/jbrukh/bayesian","tags":["naive-bayes","classification","machine-learning","nlp"],"install":[{"cmd":"go get github.com/jbrukh/bayesian","lang":"bash","label":"Install github.com/jbrukh/bayesian"}],"dependencies":[],"imports":[{"symbol":"bayesian","correct":"github.com/jbrukh/bayesian"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jbrukh/bayesian\"\n)\n\nfunc main() {\n\tclassifier := bayesian.NewClassifier(\"positive\", \"negative\")\n\tclassifier.Learn([]string{\"great\", \"awesome\"}, \"positive\")\n\tclassifier.Learn([]string{\"bad\", \"terrible\"}, \"negative\")\n\tprobs, _, _ := classifier.LogScores([]string{\"great\", \"bad\"})\n\tfmt.Println(probs)\n}","lang":"go","description":"Trains a Naive Bayes classifier and scores a document."},"warnings":[],"env_vars":null,"search_vec":"'bay':14 'bayesian':1,4,8 'classif':15 'classifi':2,9 'go':11 'learn':18 'machin':17 'machine-learn':16 'naiv':7,13 'naive-bay':12 'nlp':19 'packag':3","created_at":"2026-06-17T18:35:50.720423+00:00","updated_at":"2026-06-17T18:35:50.720423+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/jbrukh/bayesian","github":"https://github.com/jbrukh/bayesian","docs":"https://pkg.go.dev/github.com/jbrukh/bayesian#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}