Sentence Similarity
sentence-transformers
Safetensors
distilbert
feature-extraction
Generated from Trainer
dataset_size:1746
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use DivyaMereddy007/RecipeBert_v5originalCopy_of_TrainSetenceTransforme-Finetuning_v5_DistilledBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DivyaMereddy007/RecipeBert_v5originalCopy_of_TrainSetenceTransforme-Finetuning_v5_DistilledBert with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("DivyaMereddy007/RecipeBert_v5originalCopy_of_TrainSetenceTransforme-Finetuning_v5_DistilledBert") sentences = [ "Cheeseburger Potato Soup [\"6 baking potatoes\", \"1 lb. of extra lean ground beef\", \"2/3 c. butter or margarine\", \"6 c. milk\", \"3/4 tsp. salt\", \"1/2 tsp. pepper\", \"1 1/2 c (6 oz.) shredded Cheddar cheese, divided\", \"12 sliced bacon, cooked, crumbled and divided\", \"4 green onion, chopped and divided\", \"1 (8 oz.) carton sour cream (optional)\"] [\"Wash potatoes; prick several times with a fork.\", \"Microwave them with a wet paper towel covering the potatoes on high for 6-8 minutes.\", \"The potatoes should be soft, ready to eat.\", \"Let them cool enough to handle.\", \"Cut in half lengthwise; scoop out pulp and reserve.\", \"Discard shells.\", \"Brown ground beef until done.\", \"Drain any grease from the meat.\", \"Set aside when done.\", \"Meat will be added later.\", \"Melt butter in a large kettle over low heat; add flour, stirring until smooth.\", \"Cook 1 minute, stirring constantly. Gradually add milk; cook over medium heat, stirring constantly, until thickened and bubbly.\", \"Stir in potato, ground beef, salt, pepper, 1 cup of cheese, 2 tablespoons of green onion and 1/2 cup of bacon.\", \"Cook until heated (do not boil).\", \"Stir in sour cream if desired; cook until heated (do not boil).\", \"Sprinkle with remaining cheese, bacon and green onions.\"]", "Nolan'S Pepper Steak [\"1 1/2 lb. round steak (1-inch thick), cut into strips\", \"1 can drained tomatoes, cut up (save liquid)\", \"1 3/4 c. water\", \"1/2 c. onions\", \"1 1/2 Tbsp. Worcestershire sauce\", \"2 green peppers, diced\", \"1/4 c. oil\"] [\"Roll steak strips in flour.\", \"Brown in skillet.\", \"Salt and pepper.\", \"Combine tomato liquid, water, onions and browned steak. Cover and simmer for one and a quarter hours.\", \"Uncover and stir in Worcestershire sauce.\", \"Add tomatoes, green peppers and simmer for 5 minutes.\", \"Serve over hot cooked rice.\"]", "Fresh Strawberry Pie [\"1 baked pie shell\", \"1 qt. cleaned strawberries\", \"1 1/2 c. water\", \"4 Tbsp. cornstarch\", \"1 c. sugar\", \"1/8 tsp. salt\", \"4 Tbsp. strawberry jello\"] [\"Mix water, cornstarch, sugar and salt in saucepan.\", \"Stir constantly and boil until thick and clear.\", \"Remove from heat and stir in jello.\", \"Set aside to cool.\", \"But don't allow it to set. Layer strawberries in baked crust.\", \"Pour cooled glaze over. Continue layering berries and glaze.\", \"Refrigerate.\", \"Serve with whipped cream.\"]", "Vegetable-Burger Soup [\"1/2 lb. ground beef\", \"2 c. water\", \"1 tsp. sugar\", \"1 pkg. Cup-a-Soup onion soup mix (dry)\", \"1 lb. can stewed tomatoes\", \"1 (8 oz.) can tomato sauce\", \"1 (10 oz.) pkg. frozen mixed vegetables\"] [\"Lightly brown beef in soup pot.\", \"Drain off excess fat.\", \"Stir in tomatoes, tomato sauce, water, frozen vegetables, soup mix and sugar.\", \"Bring to a boil.\", \"Reduce heat and simmer for 20 minutes. Serve.\"]" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
296 Bytes
Ctrl+K