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.0.tar.gz
(2.3 kB
view hashes)