How to use VinitT/Embeddings-Trivia with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("VinitT/Embeddings-Trivia") sentences = [ "Johnny Depp plays policeman Ichabod Crane in which 1999 film?", "Mythology in France epics and fairy tales as part of deeply embedded spiritual allegories and mythological archetypes: Mythology in France The mythologies in present-day France encompass the mythology of the Gauls, Franks, Normans, Bretons, and other peoples living in France, those ancient stories about divine or heroic beings that these particular cultures believed to be true and that often use supernatural events or characters to explain the nature of the universe and humanity. French mythology is listed for each culture. Bretons are a subset of the celtics that adopted Christianity. Celtic cosmology predominates their mythology: Gauls were another subset of Celtic people. Celtic", "Johnny Depp in a snuff film in exchange for money for his family. Depp was a fan and friend of writer Hunter S. Thompson, and played his alter ego Raoul Duke in \"Fear and Loathing in Las Vegas\" (1998), Terry Gilliam's film adaptation of Thompson's pseudobiographical novel of the same name. Depp's next venture with Burton was the period film \"Sleepy Hollow\" (1999), in which he played Ichabod Crane opposite Christina Ricci and Christopher Walken. For his performance, Depp took inspiration from Angela Lansbury, Roddy McDowall and Basil Rathbone. He stated that he \"always thought of Ichabod as a very delicate, fragile", "Ichabod Crane Kinderhook town school district (Ichabod Crane Central School District) is also named for the Irving character. It is claimed by many in Tarrytown that Samuel Youngs is the original from whom Irving drew his character of Ichabod Crane\". Author Gary Denis asserts that while the character of Ichabod Crane is loosely based on Kinderhook Schoolmaster, Jesse Merwin, it may possibly include elements from Samuel Youngs' life. Irving's characters drive the story and are most memorable because of his detail in describing each. He says of Ichabod Crane (the main character), 'He was tall, but exceedingly lank, with narrow shoulders, long" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!