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

xsvmyx
/
extremist-text-detector

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
English
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use xsvmyx/extremist-text-detector with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("xsvmyx/extremist-text-detector")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use xsvmyx/extremist-text-detector with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("xsvmyx/extremist-text-detector")
    model = AutoModel.from_pretrained("xsvmyx/extremist-text-detector")
  • Notebooks
  • Google Colab
  • Kaggle
extremist-text-detector
183 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
xsvmyx's picture
xsvmyx
Upload 12 files
db501a8 verified 6 months ago
  • 1_Pooling
    Upload 12 files 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    10.6 kB
    Upload 12 files 6 months ago
  • clf.pkl

    Detected Pickle imports (4)

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

    How to fix it?

    3.95 kB
    xet
    Upload 2 files 6 months ago
  • config.json
    636 Bytes
    Upload 12 files 6 months ago
  • config_sentence_transformers.json
    294 Bytes
    Upload 12 files 6 months ago
  • label_encoder.pkl

    Detected Pickle imports (4)

    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "numpy.dtype",
    • "numpy.ndarray",
    • "sklearn.preprocessing._label.LabelEncoder"

    How to fix it?

    431 Bytes
    xet
    Upload 2 files 6 months ago
  • model.safetensors
    90.9 MB
    xet
    Upload 12 files 6 months ago
  • modules.json
    368 Bytes
    Upload 12 files 6 months ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    90.9 MB
    xet
    Upload 12 files 6 months ago
  • sentence_bert_config.json
    60 Bytes
    Upload 12 files 6 months ago
  • special_tokens_map.json
    732 Bytes
    Upload 12 files 6 months ago
  • tokenizer.json
    712 kB
    Upload 12 files 6 months ago
  • tokenizer_config.json
    1.53 kB
    Upload 12 files 6 months ago
  • vocab.txt
    232 kB
    Upload 12 files 6 months ago