Sentence Similarity
sentence-transformers
Safetensors
English
mpnet
feature-extraction
Generated from Trainer
dataset_size:100231
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/mpnet-base-natural-questions-mnrl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/mpnet-base-natural-questions-mnrl with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/mpnet-base-natural-questions-mnrl") sentences = [ "when did the british leave new york city", "Golden State Warriors The Golden State Warriors are an American professional basketball team based in Oakland, California. The Warriors compete in the National Basketball Association (NBA) as a member of the league's Western Conference Pacific Division. The Warriors play their home games at the Oracle Arena in Oakland. The Warriors have reached nine NBA Finals, winning five NBA championships in 1947,[b] 1956, 1975, 2015 and 2017. Golden State's five NBA championships are tied for fourth-most in NBA history with the San Antonio Spurs, and behind only the Boston Celtics (17), Los Angeles Lakers (16) and Chicago Bulls (6). As of 2017, the Warriors are the third most valuable NBA franchise according to Forbes, with an estimated value of $2.6Â billion.[6]", "Evacuation Day (New York) Evacuation Day on November 25 marks the day in 1783 when British troops departed from New York City on Manhattan Island, after the end of the American Revolutionary War. After this British Army evacuation, General George Washington triumphantly led the Continental Army from his former headquarters, north of the city, across the Harlem River south down Manhattan through the town to The Battery at the foot of Broadway.[1]", "Biochemical oxygen demand BOD can be used as a gauge of the effectiveness of wastewater treatment plants. It is listed as a conventional pollutant in the U.S. Clean Water Act.[2]" ] 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!