Dear SIGARAB,
We are improving full-text search over a large corpus of Classical Arabic, heritage texts, and MSA. We need a dependable lemma for each query and corpus token, with richer morphology such as roots available as an optional search primitive. Accuracy is the priority, but the system must also be reproducible and practical for indexing millions of documents and serving short queries.
On a small search-oriented sample, we compared CAMeL Tools MLE and unfactored BERT with SinaLab Alma. CAMeL BERT was only modestly better overall. It makes clear repairs—for example, MLE reads `أبيه` as the proper name Abbé, while BERT returns `أب` (father)—but its contextual behavior is not consistently better. For example:
- `أَعُوذُ` → `عاذ` (correct)
- `قُلْ أَعُوذُ` → generated proper-noun backoff `اعوذ`
- `قُلْ أَعُوذُ بِرَبِّ` → `عاذ` again
The valid `عاذ` analysis remains available but is ranked second in the failing case. We reproduced the same ranking with CAMeL Tools 1.5.7 and 1.6.0 using the current MSA unfactored model and with the pretrained ranking cache disabled.
What is currently the strongest model or system for contextual Arabic lemma selection for this use case, especially across Classical Arabic and MSA? Is CAMeL's unfactored BERT still the best maintained option, or are there newer open or licensed models we should evaluate? We would also appreciate recommendations for representative benchmarks, particularly ones that test clitics, diacritics, historical prose, and lemma selection in context.
We can share the frozen examples, complete ranked analyses, and comparison artifacts.
Best,
Mustafa