Camel Morph MSA context disambiguation model

A small model that ranks the analyses of the Camel Morph MSA v1.0 analyzer in their sentence. It is the context disambiguator of CrispEmbed's native Camel Morph analyzer (crispembed_ar_morph_disambiguate, C ABI version 3) and is used by Quds Office for Arabic grammar proofing.

  • bigram-v1/: the bundle (manifest.json, camel_morph_msa_v1.0.disambig.cmdis, NOTICE, LICENSE). Format: crispembed-camel-morph-disambig-v1.
  • It is meant for the proofing-bin database of cstr/camel-morph-msa-v1.0 (SHA-256 fc9d9109ddb5430da94def715df05b563cb37ffaec508f3514668ded19438909), the noprob variant without Penn Arabic Treebank probabilities.

Model

A bigram hidden Markov model whose states are the analyses the database returns for each token, grouped by tag (pos:value, prc3:value, prc2:value, prc1:value, prc0:value, enc0:flag, asp:value, per:value, num:value), lemma and part of speech. It was trained without annotated data: expectation maximization over 12,000,927 tokens of Arabic Wikipedia (20231101.ar), 10 iterations. The first E step weights each candidate by the frequency of its tag among unambiguous tokens, with the weight of noun_prop=0.1,abbrev=0.1,interj=0.1 tags scaled down. Transitions back off to the tag unigram; lexeme probabilities are add-beta smoothed per part of speech.

Evaluation

UD Arabic-PUD test (GitHub master, 20 November 2026; CC BY-SA 3.0; evaluation only, never trained on), top-1 analysis in context against gold UPOS and lemma, 15,482 tokens that are one UD word. The noprob and full columns rank each word out of context as camel_tools' MLE disambiguator does, without and with the Penn Arabic Treebank probabilities of the full database (not used here).

Top-1 in context (15,482 tokens) noprob (no ranking) this model full (PATB probabilities)
UPOS (coarse Camelโ†’UD map) 47.0% 77.9% 77.9%
lemma (dediacritized, normalized) 72.3% 90.4% 88.2%
both 40.9% 73.2% 74.1%

Model selection used sentences 0โ€“499 only; on the held-out sentences 500โ€“999 (7,869 tokens) the model scores 78.1 / 90.8 / 73.4 against 77.5 / 87.8 / 73.5 for full and 47.6 / 72.9 / 41.0 for noprob. Gold UPOS+lemma is among the analyses for 84.9% of the tokens.

Licence and attribution

CC BY-SA 4.0. The model is derived from Arabic Wikipedia text by Wikipedia contributors (CC BY-SA 4.0) and from Camel Morph MSA v1.0, (c) 2024 New York University Abu Dhabi (CC BY 4.0). See bigram-v1/NOTICE. No LDC, Penn Arabic Treebank or non-commercial resource was used.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support