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
File size: 1,339 Bytes
c8b6043 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | [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 = ["."]
|