Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:6551
loss:TripletLoss
text-embeddings-inference
Instructions to use Alessio-Borgi/all-mpnet-base-v2-margin-based-triplet-loss-finetuned-culture-15-epochs-enhanced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Alessio-Borgi/all-mpnet-base-v2-margin-based-triplet-loss-finetuned-culture-15-epochs-enhanced with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Alessio-Borgi/all-mpnet-base-v2-margin-based-triplet-loss-finetuned-culture-15-epochs-enhanced") sentences = [ "partisan film film genre Partisan film (Serbo-Croatian: partizanski film / партизански филм) is the name for a subgenre of war films made in Yugoslavia during the 1960s, 1970s and 1980s. In the broadest sense, main characteristics of Partisan films are that they are set in Yugoslavia during World War II and have Yugoslav Partisans as protagonists, while the antagonists are Axis forces and their collaborators. According to Croatian film historian Ivo Škrabalo, Partisan film is \"one of the most authentic genres that emerged from the Yugoslav cinema\". {'aliases': ['Gibanica Western', 'Partisan Western']} {'instance of': 'film genre'}", "Antal Festetics Hungarian scientist, live in Austria (born: 1937) Antal Festetics, exactly (German: Antal-Erwin Graf Festetics von Tolna; born 12 June 1937 in Budapest, Hungary), is a Hungarian-Austrian biologist, zoologist and behavioural researcher. A student of Konrad Lorenz, in 1973 he became a university professor and director of the Institute for Hunting Biology at the University of Göttingen. In 1981 he became an honorary professor at the University of Vienna. He was awarded for the establishment of national parks in Austria and Hungary, as well as the Austrian State Prize for Environmental Protection in 1988. {'note': 'infobox not present in Wikipedia'} {'occupation': 'biologist', 'instance of': 'human', 'sex or gender': 'male', 'languages spoken, written or signed': 'German', 'member of': 'German Academy of Sciences Leopoldina', 'described by source': 'Brockhaus and Efron Encyclopedic Dictionary', 'nominated for': 'Nobel Prize in Physiology or Medicine', 'country of citizenship': 'Germany'}", "garde manger employment title for a person who works as a cook but specializes in cold food A garde manger (French: [gaʁd mɑ̃ʒe]) is a cool, well-ventilated area where savory cold dishes (such as salads, hors d'œuvres, appetizers, canapés, pâtés, and terrines) are prepared and other foods are stored under refrigeration.: 3 The person in charge of this area, and all of the savory cold foods served by the restaurant, is known as the chef garde manger, or pantry chef.: 3 Larger hotels and restaurants may have garde manger staff to perform additional duties, such as creating decorative elements of buffet presentation like ice carving and edible centerpieces. {'aliases': ['chef garde manger', 'pantry chef', 'garde-manger']} {'occupation': 'cook', 'sex or gender': 'male', 'instance of': 'human', 'languages spoken, written or signed': 'French', 'country of citizenship': 'United States', 'subclass of': 'cook'}", "chicha morada beverage Chicha morada (literally, Purple Chicha) is a beverage originated in the Andean regions of Perú but is currently consumed at a national level. The base ingredient of the drink is corn culli or ckolli, which is a Peruvian variety of corn known commonly as purple corn which is abundantly grown and harvested along the Andes Mountains. Its history and consumption was already widespread in pre-Columbian times, prior to the establishment of the Inca Empire. The current preparation can be traced through different works of the nineteenth century as those of Juan de Arona, and Carlos Prince. The oldest references to its preparation as we know it today come from the writings produced in the mid-1870s by the French Camille Pradier-Fodéré. {'name': 'Chicha morada', 'type': 'Beverage', 'origin': '{{PER}}', 'color': 'Purple', 'style': 'Glass', 'ingredients': 'Purple corn, pineapple, cinnamon, cloves', 'caption': 'Two traditional Peruvian drinks paired together, chicha morada (right) and pisco sour (left).'} {'instance of': 'drink', 'subclass of': 'drink', 'country': 'Mexico', 'country of origin': 'United States', 'has part(s)': 'espresso', 'manufacturer': 'Suntory Global Spirits'}" ] 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!