I'm passionate about Natural Language Processing, Semitic linguistics, and AI optimization. My work spans Hebrew, Aramaic, Syriac, and Samaritan text processing, with expertise in eGPU optimization, transformer architectures, and historical text digitization β including set-prediction baseline detection and PAGE/ALTO export for HTR pipelines.
ORCID: 0009-0005-0365-6608 Β· Zenodo preprint: doi:10.5281/zenodo.22059333
Set-prediction detector that outputs B-spline polyline baselines directly: RegNetX-8GF, RT-DETR-style HybridEncoder, and PolylineTransformer with native PAGE/ALTO export.
- Paper: Zenodo preprint β architecture & transfer study (not a cBAD hidden-test leaderboard claim)
- Code:
johnlockejrr/regnetx-det - Stage-0 weights:
regnetx-8gf-polyline-baseline-stage0(multiscript pretrain; Gradio demo) - Hebrew/Samaritan FT:
regnetx-8gf-polyline-hebrew-samaritan(cbad_f1_maxβ 0.969 on internal val) - Highlights: HybridEncoder vs FPN neck ablation; native Stage-0 vs D-FINE warm-start; cBAD 2019 eval Stage-0 Chamfer F1 0.907
- Siblings:
dfine-det,convnextv2-det, plus hardened BLLA-style polygon export across det/seg packages in the oxygraphos-ocr workspace
Complete Hebrew text processing pipeline with advanced nikud restoration capabilities using transformer-based models.
- Model Architecture: Custom CANINE-based models optimized for Hebrew
- eGPU Optimization: Specialized training scripts for RTX 3090 with Thunderbolt 3.0
- Datasets: Mishnaic, Rabbinic, and Modern Hebrew text processing (100K+ samples)
- Performance: Memory-efficient training with GPU-cached datasets
- Applications: Biblical text analysis, modern Hebrew processing, educational tools
Complete pipeline for fine-tuning MarianMT models on Hebrew-Aramaic parallel texts, specifically designed for translating between Hebrew (Samaritan) and Aramaic (Targum) texts.
- Translation Models: Hebrew β Aramaic bidirectional translation
- Custom Tokenizers: Specialized for Semitic languages
- Dataset Engineering: Aligned corpus processing and quality analysis
- Model Optimization: Early stopping, learning rate scheduling, mixed precision training
- Applications: Biblical studies, linguistic research, text preservation
Character-level diacritization of Targumic Aramaic text using lightweight BiLSTM + Attention architecture.
- Model Architecture: 1-layer BiLSTM encoder, LSTM decoder with Luong-style attention
- Training Data: ~15,000 aligned verses from Targum Onkelos
- Performance: Lightweight model suitable for deployment
- Applications: Biblical text vocalization, linguistic research, educational tools
Advanced OCR post-processing for historical and medieval texts across multiple languages.
- Multi-language Support: Swedish, medieval texts, various scripts
- Architectures: BiLSTM, CATMuS-medieval, custom OCR correction models
- Applications: Historical document digitization, manuscript preservation, research accessibility
Handwritten Text Recognition (HTR) system using Kraken framework for historical manuscripts.
- Model Training: Custom HTR models for specific scripts and languages
- Segmentation: Advanced page segmentation and text recognition
- Deployment: Web applications and API services for HTR
- Applications: Manuscript digitization, historical research, cultural preservation
Modern web interface for searching Samaritan Torah text, built with React and FastAPI.
- Search Features: Fuzzy matching, exact phrase matching, pagination
- Responsive Design: Mobile-friendly interface with Hebrew text support
- Backend: FastAPI with Elasticsearch integration
- Applications: Biblical research, text study, educational platforms
These are current local workstreams feeding the open regnetx-det releases above. Repos are private for now; descriptions reflect working code.
Single uv workspace that installs many sibling engines under one CLI style (detectors, segmenters, line recognizers). Includes polyline baseline detectors (regnetx-det, dfine-det, convnextv2-det), segmentation packages (blla-seg, dfine-seg, docufcn-seg, surya-seg, rfdetr-seg, β¦), and HTR/OCR recognizers (RepViT, Nemo, PyLaia, Loghi, HTR-VT, PP-OCRv6, β¦), plus shared hardened PAGE/ALTO polygon export.
Local-first ATR platform (eScriptorium-inspired): projects, async jobs (Redis/RQ), multi-user auth with GPU isolation, and in-workspace recognition using engines from oxygraphos-ocr (RepViT, Nemo, PyLaia, Loghi + optional KenLM). Segmentation / baseline models (BLLA, D-FINE, RegNetX, Doc-UFCN, β¦) plug in as adapters. FastAPI backend + SvelteKit frontend.
Local-first annotation app for scanned pages: regions, baselines, optional polygonize, transcription, LTR/RTL projects, ZIP/RAR import, PAGE-like XML export. FastAPI + SQLAlchemy/SQLite + SvelteKit. Complements ATR by focusing on layout/transcription labeling rather than full job orchestration.
Installable marian CLI/library for MarianMT Semitic translation: train, serve, evaluate, checkpoint averaging. Bidirectional Hebrew β Targumic Aramaic and Hebrew β Classical Syriac models (chained fine-tunes from opus-mt-sem-sem). Example held-out scores: hebβarc BLEU 45.1 / chrF 64.3; arcβheb BLEU 61.1 / chrF 74.2.
- Python: PyTorch, TensorFlow, FastAPI, Streamlit, Gradio
- JavaScript/TypeScript: React, Node.js, modern web development
- C++/Rust: Performance-critical applications and systems programming
- SQL/NoSQL: Database design and optimization
- Deep Learning: PyTorch, Transformers (Hugging Face), TensorFlow, Keras
- NLP Models: MarianMT, CANINE, BiLSTM, Attention mechanisms
- Document / layout detectors: DETR-style set prediction, HybridEncoder, polyline baselines (RegNetX / D-FINE / ConvNeXt)
- Computer Vision: OCR, HTR, image processing with Kraken; PAGE-XML / ALTO export
- Model Optimization: Mixed precision training, gradient checkpointing, early stopping
- RTX 3090 24GB optimization for large-scale training
- Thunderbolt 3.0 bandwidth management and optimization
- Memory-efficient training strategies for large datasets
- GPU-cached datasets and distributed training
- AMD Instinct MI300X (ROCm) for multiscript Stage-0 pretraining
- Hebrew: Biblical, Mishnaic, Modern Hebrew with nikud restoration
- Aramaic: Targumic, Syriac, and various Aramaic dialects
- Samaritan: Samaritan Hebrew script and text processing
- Unicode normalization and text segmentation for Semitic scripts
- Biblical Hebrew text analysis and processing
- Targumic Aramaic translation and diacritization
- Samaritan Hebrew script recognition and processing
- Syriac Aramaic language models and translation
- Cross-lingual Semitic language processing
- Memory-efficient training for large-scale datasets (100K+ samples)
- eGPU performance optimization for external GPU setups
- Mixed precision training strategies (bfloat16, fp16)
- Gradient checkpointing and advanced memory management
- OCR post-processing for medieval and historical manuscripts
- Handwritten Text Recognition (HTR) for various scripts
- Baseline / polyline detection for line-level HTR pipelines
- Text cleaning and normalization for ancient languages
- Dataset creation for historical text corpora
- Modern web interfaces for linguistic research tools
- API development for NLP services
- Docker containerization and production deployment
- Responsive design with multilingual text support
- β Published regnetx-det preprint on Zenodo (doi:10.5281/zenodo.22059333) with HF weights and Gradio demo
- β Released Stage-0 + Hebrew/Samaritan polyline checkpoints for historical baseline detection
- β Hardened PAGE/ALTO polygon export (BLLA-derived carver + baseline containment) across detector siblings
- β Building private Oxygraphos ATR / OCR / annotator stack and Marian Semitic MT toolkit (not public yet)
- β Developed comprehensive Hebrew NLP system with eGPU optimization
- β Created bidirectional Hebrew-Aramaic translation models for biblical studies
- β Built lightweight Aramaic diacritizer using BiLSTM + Attention
- β Implemented advanced OCR correction for multiple languages and scripts
- β Deployed HTR system for historical manuscript processing
- β Created modern web platform for Samaritan Torah research
- β Optimized training pipelines for memory efficiency and speed
- β Processed large-scale datasets (100K+ samples) with custom preprocessing
Set-prediction polyline baselines for historical documents (HybridEncoder transfer). Paper: Zenodo. Weights: Stage-0, Hebrew/Samaritan.
Complete Hebrew text processing pipeline with advanced nikud restoration, eGPU optimization, and large-scale dataset processing.
Complete pipeline for fine-tuning MarianMT models on Hebrew-Aramaic parallel texts with custom tokenizers and optimization strategies.
Lightweight BiLSTM + Attention model for character-level diacritization of Targumic Aramaic text.
Advanced OCR post-processing for historical texts across multiple languages and scripts.
Handwritten Text Recognition system using Kraken framework for historical manuscript processing.
Modern web interface for searching Samaritan Torah text with React, FastAPI, and Elasticsearch.
oxygraphos-ocr Β· oxygraphos-atr Β· oxygraphos-annotator Β· marian (marianmt-heb-arc) β see Current Projects above.
- GitHub: @johnlockejrr
- Hugging Face: @johnlockejrr
- ORCID: 0009-0005-0365-6608
- Zenodo: regnetx-det preprint
- Research Focus: Semitic NLP, historical document AI (baselines / HTR / OCR), AI optimization, eGPU computing
Currently working on:
- Polyline baseline detection (regnetx-det / dfine-det / convnextv2-det) and PAGE/ALTO export hardening
- Multiscript Stage-0 pretraining and Hebrew/Samaritan domain fine-tuning
- Oxygraphos private stack β
oxygraphos-ocr(engine workspace),oxygraphos-atr(ATR jobs + recognition),oxygraphos-annotator(PAGE/ALTO labeling) - MarianMT Semitic MT toolkit (
marian/marianmt-heb-arc) β Hebrew β Aramaic / Syriac trainβserveβeval - Advanced Semitic language model training with eGPU / accelerator optimization
- Large-scale historical text dataset creation and preprocessing
- Cross-lingual Semitic language processing and translation
- Memory-efficient training strategies for transformer models
- Historical manuscript digitization and text recognition
- Web platform development for linguistic research tools
I'm always interested in:
- Semitic linguistics research collaborations
- Historical text digitization projects
- Baseline detection / HTR and document layout AI
- AI model optimization for ancient languages
- eGPU computing challenges and optimization
- Cross-cultural linguistic research partnerships
- Open-source NLP tool development
Feel free to reach out if you'd like to work together on Semitic language processing, historical text digitization, AI optimization, or any other exciting projects!
My work focuses on preserving and making accessible ancient Semitic texts through modern AI technology. By combining linguistic expertise with cutting-edge machine learning, I aim to:
- Bridge ancient and modern through technology
- Preserve cultural heritage through digital means
- Advance linguistic research with AI tools
- Make historical texts accessible to researchers worldwide
- Develop sustainable solutions for text preservation
"Language is the key to understanding culture, and AI is the key to processing language at scale. When we combine both, we unlock the wisdom of the ages." ππποΈ


