Text Classification
Scikit-learn
Joblib
sentence-transformers
English
sentiment-analysis
imdb
movie-reviews
logistic-regression
Instructions to use abir71/imdb-sentiment-mpnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use abir71/imdb-sentiment-mpnet with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("abir71/imdb-sentiment-mpnet", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - sentence-transformers
How to use abir71/imdb-sentiment-mpnet with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("abir71/imdb-sentiment-mpnet") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download classifier.joblib from abir71/imdb-sentiment-mpnet: direct link, hf CLI and curl.
- Browser
- Download file 3.93 kB
-
https://huggingface.co/abir71/imdb-sentiment-mpnet/resolve/main/classifier.joblib
- Command line
-
hf download hf://abir71/imdb-sentiment-mpnet/classifier.joblib
-
curl -L -o classifier.joblib https://huggingface.co/abir71/imdb-sentiment-mpnet/resolve/main/classifier.joblib
3.93 kB
- Xet hash:
- 1b5945ed844f60ae167eaf37add0875f22bff50db41fa5fec79176486ec13c9a
- Size of remote file:
- 3.93 kB
- SHA256:
- 14bf99a8b681e42cc0b81ca221c37f71027c89d911a2af7a5063a225749aec04
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.