Instructions to use jtorreggiani/lr-statement-intent-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use jtorreggiani/lr-statement-intent-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("jtorreggiani/lr-statement-intent-classifier", "custom_model.pkl") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
File size: 445 Bytes
9efaba0 10a9d1c 0499d8b 10a9d1c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | {
"sklearn": {
"environment": ["scikit-learn=1.4.1.post1", "pandas"],
"example_input": {
"data": [
"What is the capital of France?",
"I am feeling very tired today.",
"Please turn off the lights before leaving."
]
},
"model": {
"file": "custom_model.pkl"
},
"model_format": "pickle",
"task": "text-classification",
"use_intelex": false
},
"model_type": "sklearn"
}
|