Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:1611024
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use thebajajra/RexBERT-base-embed-pf-v0.4a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thebajajra/RexBERT-base-embed-pf-v0.4a with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thebajajra/RexBERT-base-embed-pf-v0.4a") sentences = [ "Montfichet's Tower was a Norman fortress on Ludgate Hill, in the historic centre and central business district of which city?", "Sentence1: 'a pan pizza with a thick crust on a cutting board with a knife', Sentence2: 'a table is covered with vases and containers'. Is the frequency of the word 'with' in two sentences equal?", "Context Word: Door.", "Montfichet's Tower Montfichet's Tower (also known as Montfichet's Castle and/or spelt Mountfitchet's or Mountfiquit's) was a Norman fortress on Ludgate Hill in London, between where St Paul's Cathedral and City Thameslink railway station now stand. First documented in the 1130s, it was probably built in the late 11th century. The defences were strengthened during the revolt of 1173–1174 against Henry II." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!