Image-to-Text
Transformers
Safetensors
Turkish
English
ocr
turkish
document-intelligence
vision-language-model
svtrv2
qwen2.5-vl
kvkk
pii-redaction
legal-nlp
ictihat
financial-verification
visual-redaction
Eval Results (legacy)
Instructions to use ersanbil/TurkceOCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ersanbil/TurkceOCR with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="ersanbil/TurkceOCR")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ersanbil/TurkceOCR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download turkceocr/models/__init__.py from ersanbil/TurkceOCR: direct link, hf CLI and curl.
- Browser
- Download file 928 Bytes
-
https://huggingface.co/ersanbil/TurkceOCR/resolve/main/turkceocr/models/__init__.py
- Command line
-
hf download hf://ersanbil/TurkceOCR/turkceocr/models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/ersanbil/TurkceOCR/resolve/main/turkceocr/models/__init__.py
928 Bytes
| """ | |
| TürkçeOCR İki Katmanlı Model Mimarileri ve Özel Kayıp Fonksiyonları: | |
| - `TurkceOCRVL`: LightOnOCR-2 & PaddleOCR-VL çift omurgalı 1B Doküman VLM'i | |
| - `TurkceOCRLine`: SVTRv2 + Türkçe Morfolojik SGM satır okuma motoru | |
| - `DiacriticFocalLoss` & `TurkishMorphologicalSGMLoss`: Türkçe diakritik ve morfoloji odaklı kayıp fonksiyonları | |
| """ | |
| from turkceocr.models.line_svtrv2 import ( | |
| TurkceOCRLine, | |
| segment_page_lines_adaptive, | |
| ) | |
| from turkceocr.models.losses import ( | |
| DiacriticFocalLoss, | |
| TurkishCharacterVocabulary, | |
| TurkishMorphologicalSGMLoss, | |
| ) | |
| from turkceocr.models.vl_model import ( | |
| HighResDiacriticTiler, | |
| TurkceOCRVL, | |
| TurkceOCRVLConfig, | |
| ) | |
| __all__ = [ | |
| "TurkceOCRVL", | |
| "TurkceOCRVLConfig", | |
| "HighResDiacriticTiler", | |
| "TurkceOCRLine", | |
| "segment_page_lines_adaptive", | |
| "TurkishCharacterVocabulary", | |
| "DiacriticFocalLoss", | |
| "TurkishMorphologicalSGMLoss", | |
| ] | |