How to use Mozilla/smart-tab-embedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Mozilla/smart-tab-embedding") sentences = [ "Oracle Cloud - Infrastructure and Platform Services for Enterprises", "PulseAudio - Ubuntu Wiki", "Documentation page not found - Read the Docs", "Dwarf Fortress beginner tips - Video Games on Sports Illustrated" ] 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!