Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

HuaminChen
/
category_classifier_linear_model

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

Instructions to use HuaminChen/category_classifier_linear_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use HuaminChen/category_classifier_linear_model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("HuaminChen/category_classifier_linear_model")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
category_classifier_linear_model
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
HuaminChen's picture
HuaminChen
Upload folder using huggingface_hub
7613b2a verified 12 months ago
  • 1_Pooling
    Upload folder using huggingface_hub 12 months ago
  • 2_Dense
    Upload folder using huggingface_hub 12 months ago
  • .gitattributes
    1.52 kB
    initial commit 12 months ago
  • README.md
    2.32 kB
    Upload folder using huggingface_hub 12 months ago
  • category_mapping.json
    498 Bytes
    Upload folder using huggingface_hub 12 months ago
  • config.json
    680 Bytes
    Upload folder using huggingface_hub 12 months ago
  • config_sentence_transformers.json
    123 Bytes
    Upload folder using huggingface_hub 12 months ago
  • model.safetensors
    133 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • modules.json
    341 Bytes
    Upload folder using huggingface_hub 12 months ago
  • sentence_bert_config.json
    53 Bytes
    Upload folder using huggingface_hub 12 months ago
  • special_tokens_map.json
    695 Bytes
    Upload folder using huggingface_hub 12 months ago
  • tokenizer.json
    712 kB
    Upload folder using huggingface_hub 12 months ago
  • tokenizer_config.json
    1.46 kB
    Upload folder using huggingface_hub 12 months ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub 12 months ago