modern-egyptian-bge-m3-embeddings
embeddings for the Egyptian dialect
2 min readupdated
This model is a fine-tuned version of the well-known multilingual BAAI/bge-m3 model, adapted for texts in the Egyptian dialect of Arabic. It converts sentences and paragraphs into dense 1024-dimensional vector representations. It is designed for semantic search, text comparison, and clustering within specific local domains. The model will be useful for developers and researchers who need to process queries and documents in conversational Egyptian Arabic.
Key features
- Based on the architecture of the powerful BAAI/bge-m3 model.
- Generates dense 1024-dimensional vectors for texts up to 512 tokens long.
- Trained on a dataset with examples from real local domains (telecom, e-commerce, healthcare).
- Shows high accuracy (up to 1.0 on test datasets) in triplet matching tasks.
What you can do
- Set up semantic search for documents or knowledge bases in the Egyptian dialect.
- Integrate into support chatbots to match user queries with ready-made answers.
- Cluster and classify user requests by topic.
Example
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Marwan101/modern-egyptian-bge-m3-embeddings-100k")
sentences = [
'يا جماعة شهادة المخالفات لرخصة القيادة بطلعها منين وبكام وإزاي اسددها؟',
'لتجديد رخصة القيادة الخاصة، توجه لوحدة المرور التابع لها محل إقامتك...',
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities)
Read more
DetailsBenchmarks: cosine_accuracy on validation is 0.94, on test is 1.0 (TripletEvaluator).
Training: used 80,000 training samples and CachedMultipleNegativesRankingLoss.
Maximum sequence length: 512 tokens.










Comments