A svm classifier model for predicting license short_name
Project description
About
This is a simple python package of Linear support vector machine model trained on the Minerva dataset. The trained model can be used to predict the license shortname from the code.
How to use
- Installing the package:
pip install linearsvc
- Import the trained model:
from linearsvc import linearsvc
- How to use:
- By calling sklearn's predict function:
classifier = linearsvc(processed_comment)
predictor = classifier.classify()
short_name = predictor.predict(processed_comment)
- By directly calling predict_shortname():
classifier = linearsvc(processed_comment)
short_name = classifier.predict_shortname()
- By calling sklearn's predict function:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
linearsvc-1.0.1.tar.gz
(12.4 MB
view hashes)
Built Distribution
linearsvc-1.0.1-py3-none-any.whl
(12.8 MB
view hashes)
Close
Hashes for linearsvc-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a0158d42033b0daf7d675847ced74229754aceb3bc9715acaa9ebf1639dea7a |
|
MD5 | 2bb6ec577537f8952a571a9a0097052c |
|
BLAKE2b-256 | 7f01f45afc8c942690fb9747c9294d04c21b0433566a099a4394e55a2a24e3f4 |