{"id":16623639,"url":"https://github.com/catplvsplus/naive-bayes","last_synced_at":"2025-06-25T14:33:10.558Z","repository":{"id":183980080,"uuid":"671109450","full_name":"catplvsplus/naive-bayes","owner":"catplvsplus","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-26T15:04:50.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T01:07:38.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catplvsplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-26T14:59:13.000Z","updated_at":"2023-07-26T14:59:20.000Z","dependencies_parsed_at":"2023-07-26T16:58:15.600Z","dependency_job_id":null,"html_url":"https://github.com/catplvsplus/naive-bayes","commit_stats":null,"previous_names":["notghex/naive-bayes","catplvsplus/naive-bayes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Fnaive-bayes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Fnaive-bayes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Fnaive-bayes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catplvsplus%2Fnaive-bayes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catplvsplus","download_url":"https://codeload.github.com/catplvsplus/naive-bayes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243021445,"owners_count":20223066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T03:24:25.833Z","updated_at":"2025-03-11T10:47:55.708Z","avatar_url":"https://github.com/catplvsplus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# naive-bayes\n\n```js\nimport { NaiveBayesClassifier } from '@catplusplus/naive-bayes';\n\nconst classifier = new NaiveBayesClassifier();\n\nawait classifier.addDocument('Hello, good morning!', 'greetings');\nawait classifier.addDocument('Hello, good evening!', 'greetings');\nawait classifier.addDocument('Hello, good day!', 'greetings');\n\nawait classifier.addDocument('How are you today?', 'question');\nawait classifier.addDocument('What are you up to?', 'question');\nawait classifier.addDocument('What is your name?', 'question');\n\nawait classifier.classify('Hi, good afternoon!'); // categories: [greetings, question]\nawait classifier.classify('Who are you?'); // categories: [question, greetings]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatplvsplus%2Fnaive-bayes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatplvsplus%2Fnaive-bayes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatplvsplus%2Fnaive-bayes/lists"}