docling-project / docling-project/docling

How to Extract Scanned Arabic Text?

Open
#3,021 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
98

Description

### Question
I am trying to convert a test document to Markdown. The doc has both English and Arabic (live text and clean text as image for each). Text extraction works in the standalone RapidOCR library (using params:
```
"Rec.engine_type": EngineType.ONNXRUNTIME,
"Rec.lang_type": LangRec.ARABIC, # ARABIC uses python-bidi
"Rec.model_type": ModelType.MOBILE,
"Rec.ocr_version": OCRVersion.PPOCRV5,
```
with `python-bidi` installed.
I tried from Docling (passed the .onnx path in RapidOcrOptions and patched the model -> PatchedRapidOcrModel(RapidOcrModel)) but no success.
Does Docling currently support languages other than English and Chinese?
If yes, how do I achieve that?
Here's a sample file for testing:
[docling_test_ak.pdf](https://github.com/user-attachments/files/25468728/docling_test_ak.pdf)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.