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 pyproject.toml from ersanbil/TurkceOCR: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/ersanbil/TurkceOCR/resolve/main/pyproject.toml
- Command line
-
hf download hf://ersanbil/TurkceOCR/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/ersanbil/TurkceOCR/resolve/main/pyproject.toml
1.34 kB
| [build-system] | |
| requires = ["setuptools>=68.0", "wheel"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "turkceocr" | |
| version = "2.0.0" | |
| description = "TürkçeOCR: İki Katmanlı Açık Kaynak Türkçe OCR, KVKK PII Karartma ve Doküman Zekası Ailesi" | |
| readme = "README.md" | |
| requires-python = ">=3.10" | |
| license = {text = "Apache-2.0"} | |
| authors = [ | |
| {name = "ersanbil"} | |
| ] | |
| keywords = [ | |
| "turkish-ocr", | |
| "turkceocr", | |
| "document-ai", | |
| "vlm", | |
| "lightonocr", | |
| "paddleocr-vl", | |
| "svtrv2", | |
| "constrained-decoding", | |
| "turkceocr-bench", | |
| "kvkk", | |
| "pii" | |
| ] | |
| dependencies = [ | |
| "numpy>=1.24.0", | |
| "Pillow>=10.0.0", | |
| "PyYAML>=6.0", | |
| ] | |
| [project.optional-dependencies] | |
| train = [ | |
| "torch>=2.2.0", | |
| "torchvision>=0.17.0", | |
| "transformers>=4.46.0", | |
| "datasets>=2.19.0", | |
| "accelerate>=0.30.0", | |
| "peft>=0.11.0", | |
| "bitsandbytes>=0.43.0", | |
| ] | |
| dev = [ | |
| "pytest>=7.4.0", | |
| ] | |
| [project.scripts] | |
| turkceocr = "turkceocr.cli:main" | |
| turkceocr-serve = "turkceocr.server:main" | |
| turkceocr-train-vl = "scripts.train_vl:main" | |
| turkceocr-train-line = "scripts.train_line:main" | |
| turkceocr-bench = "scripts.build_turkceocr_bench:main" | |
| [tool.setuptools.packages.find] | |
| where = ["."] | |
| include = ["turkceocr*", "scripts*"] | |
| [tool.pytest.ini_options] | |
| testpaths = ["tests"] | |
| python_files = ["test_*.py"] | |
| pythonpath = ["."] | |