Sentence Similarity
sentence-transformers
Safetensors
English
mpnet
feature-extraction
dense
Generated from Trainer
dataset_size:99231
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/mpnet-base-nq-cls-last-split-pooling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/mpnet-base-nq-cls-last-split-pooling with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/mpnet-base-nq-cls-last-split-pooling") sentences = [ "who led the army that defeated the aztecs", "Spanish conquest of the Aztec Empire The Spanish conquest of the Aztec Empire, or the Spanish-Aztec War (1519-21)[3] was one of the most significant and complex events in world history. There are multiple sixteenth-century narratives of the events by Spanish conquerors, their indigenous allies, and the defeated Aztecs. It was not solely a contest between a small contingent of Spaniards defeating the Aztec Empire, but rather the creation of a coalition of Spanish invaders with tributaries to the Aztecs, and most especially the Aztecs' indigenous enemies and rivals. They combined forces to defeat the Mexica of Tenochtitlan over a two-year period. For the Spanish, the expedition to Mexico was part of a project of Spanish colonization of the New World after twenty-five years of permanent Spanish settlement and further exploration in the Caribbean. The Spanish made landfall in Mexico in 1517. A Spanish settler in Cuba, Hernán Cortés, led an expedition (entrada) to Mexico, landing in February 1519, following an earlier expedition led by Juan de Grijalva to Yucatán in 1517. Two years later Cortés and his retinue set sail, thus beginning the expedition of exploration and conquest.[4] The Spanish campaign against the Aztec Empire had its final victory on August 13, 1521, when a coalition army of Spanish forces and native Tlaxcalan warriors led by Cortés and Xicotencatl the Younger captured the emperor Cuauhtemoc and Tenochtitlan, the capital of the Aztec Empire. The fall of Tenochtitlan marks the beginning of Spanish rule in central Mexico, and they established their capital of Mexico City on the ruins of Tenochtitlan.", "The Girl with All the Gifts Justineau awakens in the Rosalind Franklin. Melanie leads her to a group of intelligent hungries, to whom Justineau, wearing an environmental protection suit, starts teaching the alphabet.", "Wendy Makkena In 1992 she had a supporting role in the movie Sister Act as the shy but talented singing nun Sister Mary Robert, a role she reprised in Sister Act 2: Back in the Habit the following year. She appeared in various other television roles until 1997, when she starred in Air Bud, followed by the independent film Finding North. She continued appearing on television shows such as The Job, Oliver Beene, and Listen Up![citation needed]" ] 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!