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

truro7
/
vn-law-embedding

Sentence Similarity
sentence-transformers
Safetensors
Vietnamese
xlm-roberta
legal
feature-extraction
Generated from Trainer
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use truro7/vn-law-embedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use truro7/vn-law-embedding with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("truro7/vn-law-embedding")
    
    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
vn-law-embedding
1.13 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
truro7's picture
truro7
Update README.md
96774e4 verified about 2 years ago
  • 1_Pooling
    Upload 10 files about 2 years ago
  • .gitattributes
    1.57 kB
    Upload 10 files about 2 years ago
  • README.md
    5.07 kB
    Update README.md about 2 years ago
  • config.json
    707 Bytes
    Upload 10 files about 2 years ago
  • config_sentence_transformers.json
    195 Bytes
    Upload 10 files about 2 years ago
  • model.safetensors
    1.11 GB
    xet
    Upload 10 files about 2 years ago
  • modules.json
    349 Bytes
    Upload 10 files about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload 10 files about 2 years ago
  • special_tokens_map.json
    964 Bytes
    Upload 10 files about 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    Upload 10 files about 2 years ago
  • tokenizer_config.json
    1.34 kB
    Upload 10 files about 2 years ago
  • training_args.bin
    5.5 kB
    xet
    Upload 10 files about 2 years ago