Classifier for institution and scholar data
Project description
eric_chen_forward
To train the model:
from eric_chen_forward.model import Classifier
model = Classifier()
# option 1
# text files of labels and passages respectively, separated by newlines
model.train("labels_file_path", "passages_file_path")
# option 2
# csv file with a 'label' column and 'passage' column, the column names are hardcoded
model.train(csv_file="csv_file_path")
To use the saved model in code:
with open('model.pkl', 'rb') as f:
model = pickle.load(f)
To run the classifier demo:
from eric_chen_forward import url_classifier_demo
url_classifier_demo.Demo('file path of model.pkl')
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
Built Distribution
Close
Hashes for eric_chen_forward-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520316c8b2a24cf42b5de6be94e3273ceff0a330b7baf6597ab978f140c9ae63 |
|
MD5 | 213e6ff83c6c56b10ed66841b3236723 |
|
BLAKE2b-256 | 806c40cd1be5f6b58480c3e673e725460416fba2b25c47d224e62d0a54e1ae96 |