Downloads · 30 days
0
ArieLLL123/judaic-semantic-tokenizer-v0.1
judaic-semantic-tokenizer-v0.1 is a machine learning model from ArieLLL123. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
A compact Unigram + Metaspace tokenizer for semantic retrieval across rabbinic Hebrew, Aramaic, modern Hebrew, and limited Judeo-Arabic. This is a complete trained tokenizer candidate, not a sample. It is not an embed…
Downloads · 30 days
0
Access
Public
Updated Aug 9, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json1.6 MB · 80%
From the Hugging Face model README
A compact Unigram + Metaspace tokenizer for semantic retrieval across rabbinic Hebrew, Aramaic, modern Hebrew, and limited Judeo-Arabic. This is a complete trained tokenizer candidate, not a sample. It is not an embedding model and this repository intentionally contains no encoder weights.
9.986568e-7 (0.0000999%);1.543809;1.46087 / 2.25;1.9915 to 1.7835 after adding HeQ;2.0492 to 1.8504.It is labeled v0.1-candidate, rather than final, because it has not yet been compared against 16k/32k vocabularies on end-to-end retrieval metrics and was sampled from the local 7.13M-line collection instead of trained on every line.
Use preprocessing.normalize_text before tokenization. The preprocessing keeps visible HTML text but removes HTML tags; applies NFKC; strips Hebrew diacritics, Latin letters, bidi/invisible controls; canonicalizes common punctuation variants; and collapses whitespace. The tokenizer JSON alone does not reproduce all of these domain rules.
from huggingface_hub import hf_hub_download
from transformers import AutoTokenizer
import importlib.util
repo_id = "ArieLLL123/judaic-semantic-tokenizer-v0.1"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
preprocessing_path = hf_hub_download(repo_id, "preprocessing.py")
spec = importlib.util.spec_from_file_location("preprocessing", preprocessing_path)
preprocessing = importlib.util.module_from_spec(spec)
spec.loader.exec_module(preprocessing)
text = preprocessing.normalize_text("<b>בְּרֵאשִׁית</b> bara")
encoded = tokenizer("[שאילתה] " + text, truncation=True, max_length=256)
Special tokens: [PAD], [UNK], [CLS], [SEP], [MASK], [שאילתה], [קטע].
Use as the tokenizer for a compact bi-encoder trained with the associated aligned-pair dataset. It is designed for unvocalized retrieval. Niqqud-sensitive tasks, Latin-heavy bibliographic queries, and unrelated languages are out of scope. Tokenization efficiency is only a proxy; the final choice must be made using retrieval recall/MRR/nDCG and latency.
<!-- judaic-semantic-rights:start -->The tokenizer vocabulary, normalization interface, evaluation, packaging, and project-authored metadata were produced by the Judaic Semantic Embedding project within Otzaria. This statement concerns those artifacts, not authorship of source texts.
Project-authored model/tokenizer artifacts are licensed under CC BY-NC-SA 4.0. Any included
project-authored code uses the Personal Use License 1.0 in LICENSE.md; third-party files
retain their own terms.