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

  • Log In
  • Sign Up

leoole
/
spoiler-detector

Text Classification
Scikit-learn
Joblib
sentence-transformers
spoiler-detection
movie-reviews
Model card Files Files and versions
xet
Community

Instructions to use leoole/spoiler-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Scikit-learn

    How to use leoole/spoiler-detector with Scikit-learn:

    from huggingface_hub import hf_hub_download
    import joblib
    model = joblib.load(
    	hf_hub_download("leoole/spoiler-detector", "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 leoole/spoiler-detector with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("leoole/spoiler-detector")
    
    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
spoiler-detector
21 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
leoole's picture
leoole
Upload report.md
06a780f verified 7 days ago
  • .gitattributes
    1.52 kB
    initial commit 7 days ago
  • README.md
    2.18 kB
    Add spoiler detector model artifacts 7 days ago
  • best_model.joblib

    Detected Pickle imports (4)

    • "sklearn.svm._classes.SVC",
    • "numpy.ndarray",
    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "numpy.dtype"

    How to fix it?

    21 MB
    xet
    Add spoiler detector model artifacts 7 days ago
  • classification_report.txt
    380 Bytes
    Add spoiler detector model artifacts 7 days ago
  • metadata.json
    160 Bytes
    Add spoiler detector model artifacts 7 days ago
  • report.md
    6.76 kB
    Upload report.md 7 days ago
  • test_results.csv
    490 Bytes
    Add spoiler detector model artifacts 7 days ago