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

  • Log In
  • Sign Up

oldhu
/
text2vec-lert-base-5-tasks

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

Instructions to use oldhu/text2vec-lert-base-5-tasks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use oldhu/text2vec-lert-base-5-tasks with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("oldhu/text2vec-lert-base-5-tasks")
    
    sentences = [
        "那是 個快樂的人",
        "那是 條快樂的狗",
        "那是 個非常幸福的人",
        "今天是晴天"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
text2vec-lert-base-5-tasks
410 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
oldhu's picture
oldhu
Update README.md
ac2ef04 almost 3 years ago
  • 1_Pooling
    Upload config.json almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    484 Bytes
    Update README.md almost 3 years ago
  • config.json
    887 Bytes
    Upload 7 files almost 3 years ago
  • eval_results.txt
    69 Bytes
    Upload 7 files almost 3 years ago
  • modules.json
    230 Bytes
    Upload 2 files almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    409 MB
    xet
    Upload pytorch_model.bin almost 3 years ago
  • sentence_bert_config.json
    54 Bytes
    Upload 2 files almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload 7 files almost 3 years ago
  • tokenizer.json
    439 kB
    Upload 7 files almost 3 years ago
  • tokenizer_config.json
    342 Bytes
    Upload 7 files almost 3 years ago
  • training_progress_scores.csv
    538 Bytes
    Upload 7 files almost 3 years ago
  • vocab.txt
    110 kB
    Upload 7 files almost 3 years ago