Download README.md from CAMeL-Lab/camelparser-barectb-PATB-CamelTB: direct link, hf CLI and curl.
- Browser
- Download file 3.2 kB
-
https://huggingface.co/CAMeL-Lab/camelparser-barectb-PATB-CamelTB/resolve/main/README.md
- Command line
-
hf download hf://CAMeL-Lab/camelparser-barectb-PATB-CamelTB/README.md
-
curl -L -o README.md https://huggingface.co/CAMeL-Lab/camelparser-barectb-PATB-CamelTB/resolve/main/README.md
language:
- ar
base_model: CAMeL-Lab/bert-base-arabic-camelbert-msa
tags:
- dependency-parsing
- arabic
- catib
- barectb
- supar
- pytorch
CamelParser-BARECTB: PATB-CamelTB
A supervised Arabic dependency parser using the CATiB representation, trained on PATB and CAMeL Treebank for BARECTB: A Dependency Treebank and Parsing Benchmark for Arabic Children’s Texts (ArabicNLP 2026).
This repository contains the original paper-era patb_camel.model checkpoint. It is the same checkpoint distributed in the paper repository's models/ directory. The later expanded 160K experiments use separate checkpoints.
Model
- Encoder: CAMeLBERT-MSA, as recorded in the checkpoint's training configuration.
- Dependency parser: BERT-encoded biaffine parser implemented with SuPar and used through CAMeL Parser.
- Training condition: PATB and CAMeL Treebank.
- Annotation: CATiB dependency relations.
- Checkpoint format: native SuPar
.model; load with CAMeL Parser/SuPar.
The original patb_camel.model.yaml accompanies the checkpoint. Its historical training paths are preserved as provenance; inference uses the downloaded checkpoint.
Files
| File | Description |
|---|---|
patb_camel.model |
Original trained parser checkpoint. |
patb_camel.model.yaml |
Original training configuration. |
SHA256SUMS |
Checkpoint SHA-256 checksum. |
CITATION.bib |
Paper citation. |
Inference with CAMeL Parser
Follow the installation instructions in the CAMeL Parser main branch, including its Python and CAMeL Tools data requirements. From that checkout, download this checkpoint into its models/ directory:
from huggingface_hub import hf_hub_download
hf_hub_download(
repo_id="CAMeL-Lab/camelparser-barectb-PATB-CamelTB",
filename="patb_camel.model",
local_dir="models",
)
Then parse raw Arabic text:
python text_to_conll_cli.py -f text -m patb_camel.model -s "القطة نائمة."
Use -i input.txt for a file of sentences. The optional MSA-S31 morphology database requires the separate installation and access steps documented upstream.
Scope
This checkpoint supports the paper's supervised Arabic dependency parsing experiments. Use the matching original BARECTB splits when reproducing that benchmark. Training corpora and morphology resources are separate from this model repository.
Citation
If you use BAREC-TB in your work, please cite the following paper:
@inproceedings{elmadani-etal-2026-barec-tb,
title = {BAREC-TB: A Dependency Treebank and Parsing Benchmark for Arabic Children’s Texts},
author = {Elmadani, Khalid N. and Adel, Mohamed and AbuOdeh, Muhammed and Faraj, Reem and El-Gizuli, Jamila and Taha-Thomure, Hanada and Habash, Nizar},
booktitle = {Proceedings of The Fourth {A}rabic Natural Language Processing Conference},
month = {October},
year = {2026},
address = {Budapest, Hungary},
publisher = {Association for Computational Linguistics}
}