Elamur Research⌕
☰
home / papers / 2007 / Arabic Tokenization System

Arabic Tokenization System

Paper · 2007 · Mohammed Attia

Summary

Arabic writing often fuses several syntactic units into one orthographic word. Conjunctions, prepositions, the definite article and pronouns attach to stems with no visible separator, and they can stack and change shape through assimilation. A parser that builds trees from syntactic units therefore needs a tokenizer that knows Arabic morphology.

Attia describes a rule-based tokenizer built with Finite State Technology (lexc, Flag Diacritics). It serves an Arabic Lexical Functional Grammar on the XLE platform within the ParGram Project. He compares three designs:

  • one transducer that both analyses and segments words;
  • a separate guesser that treats any letter sequence as a possible stem, paired with a small clitic-only transducer merged into the main morphology;
  • a segmenter limited to words the morphology already lists.

The guesser design is preferred because it is robust and modular. Its overgeneration is controlled later in the pipeline:

  • the morphological transducer discards paths with invalid stems;
  • a cashida mark separates split clitics from free words;
  • a token filter labels rare splits and decomposed multiword expressions as "+undesired".

The outcome is a reusable pipeline architecture rather than a benchmark score. The available text reports no accuracy figures.

Key points

  • A single Arabic word can carry up to four tokens. A verb may combine a conjunction, a complementizer, a stem and an object pronoun. In nouns, the definite article and the genitive pronoun cannot co-occur, and lexc enforces this with a shared Flag Diacritic (U.Def On/Off).
  • "Main tokens" are separated by whitespace and punctuation, including the Arabic comma, question mark and semicolon, plus both Arabic and Hindi numerals. "Sub-tokens" are clitics and stems inside a word. Both kinds are delimited by '@'.
  • The three models are combined analysis, guesser-based segmentation, and lexicon-dependent segmentation. Model 2 (the guesser) was chosen as optimal, even though a three-word sentence can already produce eight segmentations.
  • Splitting creates new ambiguities. In kitabahum ("their book"), the separated hum could be a clitic, the free pronoun "they", or a noun meaning "worry". The proclitic ka ("as") and the enclitic ka ("you") also collide. The cashida-marker fix is credited to Ron M. Kaplan and Martin Forst.
  • The token filter combines a custom list of legal but unlikely splits (e.g. ba'd → bi + 'add, baina → bi + yin) with a list imported from the MWE transducer (e.g. hazr al-tajawwul, "curfew"). Matching outputs are tagged rather than deleted.

Interesting ideas

  • I1. Generate segmentations permissively with a guesser that accepts any stem, then let the lexicon/morphology prune paths with impossible stems, which keeps robustness on unknown words without accepting garbage.
  • I2. After splitting, mark which side a clitic was attached on, so a detached piece cannot be confused with an identical free word.
  • I3. Readings that are legal but rarely intended are flagged with a tag such as +undesired rather than removed, so control stays with later stages and nothing is silently lost.
  • I4. The same multiword-expression list serves two purposes: it defines single tokens and it detects when a non-deterministic tokenizer has broken an expression into compositional pieces.
  • I5. Clitic paths are removed from the main lexicon and moved into a small clitic-only transducer that is merged back in, so each module owns one job and the lexicon holds no duplicate entries.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (tokens): the en tokenizer could propose several splits for unseen or hyphenated forms and keep only those whose pieces get a valid lemma from morphology, with each discard logged as an explanation.
  • I2 (tokens): English pieces like 's, 'd and n't could keep an attachment marker, so the tagger never treats a split 's like a standalone word and can still choose between possessive and "is/has".
  • I3 (tree): the parser could receive soft penalties on such token paths, which keeps the explainable trace and lets a later step override the penalty when the context demands it.
  • I4 (frames): prag could use one idiom/MWE inventory to block literal who-did-what-to-whom frames for fixed phrases like "kick the bucket" or "in spite of".
  • I5 (tokens): the en crate could keep contractions and clitic-like pieces in a separate small lexicon combined with the main one, making each module simpler to test and debug.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Mohammed Attia. 2007. Arabic Tokenization System. Proceedings of the 2007 Workshop on Computational Approaches to Semitic Languages: Common Issues and Resources.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{attia2007arabic,
  title = {{Arabic Tokenization System}},
  author = {Mohammed Attia},
  booktitle = {Proceedings of the 2007 Workshop on Computational Approaches to Semitic Languages: Common Issues and Resources},
  year = {2007},
  doi = {10.3115/1654576.1654588},
  url = {https://doi.org/10.3115/1654576.1654588}
}

References

17 references, 5 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Abbès R, Dichy J, Hassoun M (2004): The Architecture of a Standard Arabic lexical database: some figures, ratios and categories from the DIINAR.1 source program, The Workshop on Computational Approaches to Arabic Script-based Languages, COLING 2004. Geneva, Switzerland.
  2. Attia M (2006a): Accommodating Multiword Expressions in an Arabic LFG Grammar. In Salakoski T, Ginter F, Pyysalo S, Pahikkala T (eds), Advances in Natural Language Processing, 5th International Conference on NLP, FinTAL 2006, Turku, Finland, Vol 4139. Turku, Finland: Springer-Verlag Berlin Heidelberg, pp 87-98. find
  3. Attia M (2006b): An Ambiguity-Controlled Morphological Analyzer for Modern Standard Arabic Modelling Finite State Networks, The Challenge of Arabic for NLP/MT Conference. The British Computer Society, London, UK. find
  4. Baldwin T (2004): Multiword Expressions, an Advanced Course, The Australasian Language Technology Summer School (ALTSS 2004). Sydney, Australia. find
  5. Beesley KR (2001): Finite-State Morphological Analysis and Generation of Arabic at Xerox Research: Status and Plans in 2001, Proceedings of the Arabic Language Processing: Status and Prospect — 39th Annual Meeting of the Association for Computational Linguistics. Toulouse, France. find
  6. Beesley KR, Karttunen L (2003): Finite State Morphology. Stanford, Calif.: CSLI. find
  7. Buckwalter T (2002): Buckwalter Arabic Morphological Analyzer Version 1.0., Linguistic Data Consortium. Catalog number LDC2002L49, and ISBN 1-58563-257-0. find
  8. Butt M, Dyvik H, King TH, Masuichi H, Rohrer C (2002): The Parallel Grammar Project, COLING-2002 Workshop on Grammar Engineering and Evaluation. Taipei, Taiwan. The tokenizer along with a number of other Arabic finite state tools are made available for evaluation on the website: www.attiapace.com Chanod J-P, Tapanainen P (1994): A Non-Deterministic Tokenizer for Finite-State Parsing, ECAI'96. Budapest, Hungary.
  9. Diab M, Hacioglu K, Jurafsky D (2004): Automatic Tagging of Arabic Text: From Raw Text to Base Phrase Chunks, Proceedings of NAACL-HLT 2004. Boston.
  10. Dichy J (2001): On lemmatization in Arabic. A formal definition of the Arabic entries of multilingual lexical databases, ACL 39th Annual Meeting. Workshop on Arabic Language Processing; Status and Prospect. Toulouse, pp 23-30. find
  11. Dichy J, Fargaly A (2003): Roots & Patterns vs. Stems plus Grammar-Lexis Specifications: on what basis should a multilingual lexical database centred on Arabic be built?, Proceedings of the MT-Summit IX workshop on Machine Translation for Semitic Languages. New-Orleans. find
  12. Habash N, Rambow O (2005): Arabic Tokenization, Part-of-Speech Tagging and Morphological Disambiguation in One Fell Swoop, Proceedings of ACL 2005. Michigan.
  13. Karttunen L, Chanod J-P, Grefenstette G, Schiller A (1996): Regular expressions for language engineering. Natural Language Engineering 2:305-328. ↗
  14. Larkey LS, Connell ME (2002): Arabic Information Retrieval at UMass. In Voorhees EM, Harman DK (eds), The Tenth Text Retrieval Conference, TREC 2001. Maryland: NIST Special Publication, pp 562-570. find
  15. Nelken R, Shieber SM (2005): Arabic Diacritization Using Weighted Finite-State Transducers, Proceedings of the 2005 ACL Workshop on Computational Approaches to Semitic Languages. Michigan.
  16. Oflazer K, Uglu ÖÇ, Say B (2004): Integrating Morphology with Multi-word Expression Processing in Turkish, Second ACL Workshop on Multiword Expressions: Integrating Processing. Spain, pp 64-71. find
  17. Sag IA, Baldwin T, Bond F, Copestake A, Flickinger D (2001): Multi-word Expressions: A Pain in the Neck for NLP, LinGO Working Papers. Stanford University, CA. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/attia-2007-arabic-tokenization-system/