How to use Abdelkareem/Abjd with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Abdelkareem/Abjd") sentences = [ "التطبيق الثاني، النادر، هو عندما يتم التشكيك في تأكيد عام أو عالمي للغاية، ونحن قادرون على اختباره من خلال فحص حالة واحدة.", "هناك على الأقل تطبيقان يمكن استخدامهما.", "كلية الثالوث تأسست كمركز للتعلم البروتستانتي.", "التطبيق الثاني ليس نادرًا على الإطلاق ويتم استخدامه عادة." ] 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!