AraPoemBERT: A Pretrained Language Model for Arabic Poetry Analysis
Paper • 2403.12392 • Published
Run faisalq/bert-base-arapoembert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/faisalq/bert-base-arapoembert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/faisalq/bert-base-arapoembert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use faisalq/bert-base-arapoembert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="faisalq/bert-base-arapoembert") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("faisalq/bert-base-arapoembert")
model = AutoModelForMaskedLM.from_pretrained("faisalq/bert-base-arapoembert", device_map="auto")AraPoemBERT is the first pre-trained large language model focused exclusively on Arabic poetry. The dataset used in pretraining the model contains more than 2 million verses. The code files along with the results are available on repo.
If you use SaudiBERT model in your scientific publication, or if you find the resources in this repository useful, please cite our paper as follows (citation details to be updated):
@article{qarah2024arapoembert,
title={AraPoemBERT: A Pretrained Language Model for Arabic Poetry Analysis},
author={Qarah, Faisal},
journal={arXiv preprint arXiv:2403.12392},
year={2024}
}