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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

arafamustafa
/
gte-small-similarity

Sentence Similarity
sentence-transformers
bert
feature-extraction
dense
Generated from Trainer
dataset_size:359
loss:CosineSimilarityLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use arafamustafa/gte-small-similarity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use arafamustafa/gte-small-similarity with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("arafamustafa/gte-small-similarity")
    
    sentences = [
        "Using this advanced technology, we will be able to gain transparency in our elections, without compromising the privacy of voters, and we have a way to accurately demonstrate the mathematical results of elections. Also, at the request of the voter, there will be a way to allow the voter to vote online in the election and follow his vote in the ballot box to ensure that his vote is stored safely and safely without changing or changing it in any way.",
        "Using this advanced technology, we will be able to gain transparency in our elections, without compromising the privacy of voters, and we have a way to accurately demonstrate the mathematical results of elections. Also, at the request of the voter, there will be a way to allow the voter to vote online in the election and follow his vote in the ballot box to ensure that his vote is stored safely and safely without changing or changing it in any way.",
        "we decided to make a platform, Pharmacies can be far away from your place. After noticing all these problems we made a survey to found a solution for this problem, Health is considering as the important thing in our lives, we find the solution must be the processions of the technology era, like some is not always available, can solve these problems in the side of, we found most of people suffer from a large number of problem include problems that presented previously, we have noticed that there are many problems in medicine field, the prices change from place to another",
        "determine the type of project as it was a construction project or an architectural project or sewage project After specifying the name, Enter the name of the project, The platform helps the user to find the appropriate map that he is looking for, type of project He will show him the map of the building as he wants to see it."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
gte-small-similarity
974 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
arafamustafa's picture
arafamustafa
Upload 9 files
b851b82 verified 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • README.md
    26.2 kB
    Upload 9 files 5 months ago
  • config.json
    601 Bytes
    Upload 9 files 5 months ago
  • config_sentence_transformers.json
    294 Bytes
    Upload 9 files 5 months ago
  • modules.json
    368 Bytes
    Upload 9 files 5 months ago
  • sentence_bert_config.json
    60 Bytes
    Upload 9 files 5 months ago
  • special_tokens_map.json
    732 Bytes
    Upload 9 files 5 months ago
  • tokenizer.json
    712 kB
    Upload 9 files 5 months ago
  • tokenizer_config.json
    1.53 kB
    Upload 9 files 5 months ago
  • vocab.txt
    232 kB
    Upload 9 files 5 months ago