Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

abir71
/
imdb-sentiment-mpnet

Text Classification
Scikit-learn
Joblib
sentence-transformers
English
sentiment-analysis
imdb
movie-reviews
logistic-regression
Model card Files Files and versions
xet
Community

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
imdb-sentiment-mpnet
26.6 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
abir71's picture
abir71
Add IMDB sentiment classifier and model card
2e9d696 verified 11 days ago
  • .gitattributes
    1.52 kB
    initial commit 11 days ago
  • README.md
    4.38 kB
    Add IMDB sentiment classifier and model card 11 days ago
  • classifier.joblib

    Detected Pickle imports (4)

    • "numpy.dtype",
    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "sklearn.linear_model._logistic.LogisticRegression",
    • "numpy.ndarray"

    How to fix it?

    3.93 kB
    xet
    Add IMDB sentiment classifier and model card 11 days ago
  • classifier.json
    16.1 kB
    Add IMDB sentiment classifier and model card 11 days ago
  • metadata.json
    730 Bytes
    Add IMDB sentiment classifier and model card 11 days ago