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

andyP
/
ro-sentence-transformers-v2

Sentence Similarity
sentence-transformers
Safetensors
Romanian
bert
cosine-similarity
paraphrase
Generated from Trainer
dataset_size:1012436
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use andyP/ro-sentence-transformers-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use andyP/ro-sentence-transformers-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("andyP/ro-sentence-transformers-v2")
    
    sentences = [
        "După aceea i-a dus în casa lui și le-a pus masa. Și s-a bucurat foarte mult, împreună cu toți cei din casa lui, pentru că a crezut în Dumnezeu.",
        "După ce i-a dus în casă, le-a pus masa și s-a bucurat cu toată casa lui că a crezut în Dumnezeu.",
        "Doamne, ascultă! Doamne, iartă! Doamne, ia aminte: fă și nu întârzia, de dragul tău, Dumnezeule! Pentru că numele tău este invocat asupra cetății tale și asupra poporului tău».",
        "De aceea se vor numi argint lepădat, căci Domnul i-a lepădat.”"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ro-sentence-transformers-v2
461 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
andyP's picture
andyP
Add new SentenceTransformer model
f1206d5 verified 10 months ago
  • 1_Pooling
    Add new SentenceTransformer model 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    29.3 kB
    Add new SentenceTransformer model 10 months ago
  • config.json
    666 Bytes
    Add new SentenceTransformer model 10 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 10 months ago
  • model.safetensors
    460 MB
    xet
    Add new SentenceTransformer model 10 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 10 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 10 months ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model 10 months ago
  • tokenizer.json
    842 kB
    Add new SentenceTransformer model 10 months ago
  • tokenizer_config.json
    1.46 kB
    Add new SentenceTransformer model 10 months ago
  • vocab.txt
    245 kB
    Add new SentenceTransformer model 10 months ago