How to use mohanprakash462/tamil-embed-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mohanprakash462/tamil-embed-base") sentences = [ "அவர் வீட்டுக்கு திரும்பினார்.அவர் தனது குரங்குக்கு உணவு கொடுத்து சென்றார்.அவரின் குரங்கு எங்கும் காணப்படவில்லை.அவரின் குரங்கு எல்லையில் தேடி வந்தார்.அவருக்கு அடுத்த நாள் தனது குரங்கு கண்டுபிடிக்க முடிந்தது.", "Here Comes Santa Claus ஒரு இடத்தில் ஒரு முதல் 10 ஹெட்டாக இருந்தது", "சாம் ஒரு Pet Cat", "இது ஒரு ergonomic office chair." ] 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!