How to use FDSRashid/QulBERT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FDSRashid/QulBERT") sentences = [ "هذا شخص سعيد", "هذا كلب سعيد", "هذا شخص سعيد جدا", "اليوم هو يوم مشمس" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
How to use FDSRashid/QulBERT with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("FDSRashid/QulBERT") model = AutoModel.from_pretrained("FDSRashid/QulBERT")
The community tab is the place to discuss and collaborate with the HF community!