Instructions to use erayack/intent-palette-tfidf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use erayack/intent-palette-tfidf with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("erayack/intent-palette-tfidf", "sklearn_model.joblib") ) # 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
Download examples.py from erayack/intent-palette-tfidf: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/erayack/intent-palette-tfidf/resolve/main/examples.py
- Command line
-
hf download hf://erayack/intent-palette-tfidf/examples.py
-
curl -L -o examples.py https://huggingface.co/erayack/intent-palette-tfidf/resolve/main/examples.py
270 Bytes
| """Handwritten API usage examples, not evaluation or training data.""" | |
| from intent_palette_tfidf import load_predictor | |
| p = load_predictor() | |
| print(p.predict("show my shopping list")) | |
| print(p.predict(["show my shopping list", "set a timer"])) | |
| assert p.predict([]) == [] | |