How to use pawan2411/address-emnet with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("pawan2411/address-emnet") sentences = [ "Orchard Road 313, Singapore 238895", "Orchard Rd 313, Singapore 238895", "15 Rue de la Paix/75002/France", "NY, 5th Avenue and 57th Street" ] 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!