{"id":25441947,"url":"https://github.com/pritishsingla/nbsvm_sklearn","last_synced_at":"2025-06-16T06:07:43.288Z","repository":{"id":35037301,"uuid":"199284211","full_name":"Pritishsingla/nbsvm_sklearn","owner":"Pritishsingla","description":"Scikit-learn style wrapper for the NBSVM algorithm for text classification","archived":false,"fork":false,"pushed_at":"2022-12-08T05:56:25.000Z","size":21,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T03:50:25.632Z","etag":null,"topics":["machine-learning","nbsvm","nbsvm-classifier","nlp","python","scikit-learn","text-classification"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Pritishsingla.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}},"created_at":"2019-07-28T12:25:46.000Z","updated_at":"2024-08-17T13:23:27.000Z","dependencies_parsed_at":"2023-01-15T12:30:35.714Z","dependency_job_id":null,"html_url":"https://github.com/Pritishsingla/nbsvm_sklearn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pritishsingla/nbsvm_sklearn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pritishsingla%2Fnbsvm_sklearn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pritishsingla%2Fnbsvm_sklearn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pritishsingla%2Fnbsvm_sklearn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pritishsingla%2Fnbsvm_sklearn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pritishsingla","download_url":"https://codeload.github.com/Pritishsingla/nbsvm_sklearn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pritishsingla%2Fnbsvm_sklearn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260109577,"owners_count":22960034,"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":["machine-learning","nbsvm","nbsvm-classifier","nlp","python","scikit-learn","text-classification"],"created_at":"2025-02-17T13:16:06.055Z","updated_at":"2025-06-16T06:07:43.261Z","avatar_url":"https://github.com/Pritishsingla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nbsvm-sklearn\n\nA Scikit-learn wrapper for the NBSVM algorithm. To read more about the same, go [here](https://www.aclweb.org/anthology/P12-2018)\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install nbsvm-sklearn.\n\n```bash\npip install nbsvm-sklearn\n```\nCode has been tested on python\u003e=3.6\n\n## Usage\n\n```python\nfrom nbsvm import NBSVMClassifier\n\nclf = NBSVMClassifier() # initialize the model\nclf.fit(X, y) # train the classifier; y{0,1}\nclf.predict(X) # get binary predictions\n\n```\nFull Code documentation available [here](nbsvm/nbsvm.py)\n\n## Updates\n\nVersion 0.0.5: Added Platt-scaling\n\n## Future Work\n* Add support for multi-class classification\n* Handle sparse matrices as inputs\n* Handle ```pd.Series``` input format for labels\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpritishsingla%2Fnbsvm_sklearn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpritishsingla%2Fnbsvm_sklearn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpritishsingla%2Fnbsvm_sklearn/lists"}