Token Classification
Transformers
Safetensors
English
Hebrew
xlm-roberta
code-switching
hebrew
transliteration
romanization
text-to-speech
Eval Results (legacy)
Run this model with HF Jobs
Run danielrosehill/hebrew-latin-token-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/danielrosehill/hebrew-latin-token-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/danielrosehill/hebrew-latin-token-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use danielrosehill/hebrew-latin-token-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use danielrosehill/hebrew-latin-token-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="danielrosehill/hebrew-latin-token-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("danielrosehill/hebrew-latin-token-classifier") model = AutoModelForTokenClassification.from_pretrained("danielrosehill/hebrew-latin-token-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Train FacebookAI/xlm-roberta-base on danielrosehill/hebrew-latin-code-switching: test F1 0.941
Browse filesFiles changed (9)
- .gitattributes+1
- config.jsonAdded+37
- eval_results.jsonAdded+44
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+15
- test_errors.jsonlAdded+41
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637{ "architectures": [ "XLMRobertaForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-HE", "2": "I-HE" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "B-HE": 1, "I-HE": 2, "O": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "xlm-roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "output_past": true, "pad_token_id": 1, "position_embedding_type": "absolute", "transformers_version": "4.57.6", "type_vocab_size": 1, "use_cache": true, "vocab_size": 250002}1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "model": "FacebookAI/xlm-roberta-base", "dataset": "danielrosehill/hebrew-latin-code-switching", "hyperparameters": { "epochs": 8, "lr": 3e-05, "batch": 32, "seed": 20261015 }, "best_checkpoint": "out/checkpoint-833", "validation": { "eval_loss": 0.039957743138074875, "eval_precision": 0.9502617801047121, "eval_recall": 0.9477806788511749, "eval_f1": 0.9490196078431373, "eval_runtime": 0.2551, "eval_samples_per_second": 1830.853, "eval_steps_per_second": 31.364, "epoch": 8.0 }, "test": { "precision": 0.928, "recall": 0.9534246575342465, "f1": 0.9405405405405406, "sentences": 468 }, "test_generated": { "precision": 0.9279279279279279, "recall": 0.9478527607361963, "f1": 0.9377845220030349, "sentences": 430 }, "test_dictated": { "precision": 0.9285714285714286, "recall": 1.0, "f1": 0.962962962962963, "sentences": 38 }, "test_negative_sentences": { "sentences": 106, "false_positive_sentence_rate": 0.19811320754716982 }, "test_report": " precision recall f1-score support\n\n HE 0.93 0.95 0.94 365\n\n micro avg 0.93 0.95 0.94 365\n macro avg 0.93 0.95 0.94 365\nweighted avg 0.93 0.95 0.94 365\n"}123version https://git-lfs.github.com/spec/v1oid sha256:bd68e446f00c630078fb12ea2a1257f7086b8d86159415dc4261b9d2e7d20da4size 1109845500123456789101112131415{ "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}1234567891011121314151617181920212223242526272829303132333435363738394041{"id": "g00057", "text": "I picked up some msabbaha from the shuk on Friday — the guy there makes it with just the right amount of lemon.", "gold": [], "pred": ["msabbaha"]}{"id": "g00059", "text": "Msabbaha again? You had that yesterday.", "gold": [], "pred": ["Msabbaha"]}{"id": "g00159", "text": "We're already late, so yalla, get in the car.", "gold": [], "pred": ["yalla"]}{"id": "g00259", "text": "Yeah, we're olim, just landed last week.", "gold": ["olim"], "pred": []}{"id": "g00260", "text": "The absorption center helps new olim navigate the bureaucracy of health insurance and ulpan registration.", "gold": ["olim"], "pred": ["ulpan"]}{"id": "g00432", "text": "Have you ever grabbed a coffee on dizengoff on a Friday morning?", "gold": [], "pred": ["dizengoff"]}{"id": "g00433", "text": "Yeah, I'll meet you at dizengoff, no problem.", "gold": [], "pred": ["dizengoff"]}{"id": "g00434", "text": "We spent the whole afternoon wandering around dizengoff, popping into shops and arguing about where to eat.", "gold": [], "pred": ["dizengoff"]}{"id": "g00545", "text": "We celebrated sukkot in Tel Aviv last year and the weather was perfect.", "gold": ["sukkot"], "pred": []}{"id": "g00576", "text": "I grabbed some peppers and eggs at the shuk because I'm making shakshuka tonight.", "gold": ["shakshuka"], "pred": []}{"id": "g00577", "text": "Do you know if that new deli sells shakshuka by the container?", "gold": ["shakshuka"], "pred": []}{"id": "g00578", "text": "Shakshuka? I thought we were buying falafel.", "gold": ["Shakshuka"], "pred": []}{"id": "g00705", "text": "I finally got my mas hachnasa hafkaa approved after three months of paperwork.", "gold": [], "pred": ["hafkaa"]}{"id": "g00708", "text": "I need the heshbonit mas kabala from the contractor before I can pay him.", "gold": ["heshbonit", "mas", "kabala"], "pred": ["heshbonit"]}{"id": "g00709", "text": "Did you remember to ask for a heshbonit mas kabala at the supermarket?", "gold": ["heshbonit", "mas", "kabala"], "pred": ["heshbonit", "mas"]}{"id": "g00807", "text": "I used to grab lunch in ramat gan every Thursday when I worked nearby.", "gold": [], "pred": ["ramat", "gan"]}{"id": "g00808", "text": "Have you ever tried the little Yemenite place in ramat gan?", "gold": [], "pred": ["gan"]}{"id": "g00999", "text": "I bought lechem at the shuk this morning.", "gold": [], "pred": ["lechem"]}{"id": "g01035", "text": "Do we need more babaganoush for the party, or is one tub enough?", "gold": [], "pred": ["babaganoush"]}{"id": "g01052", "text": "Just toss the dirty laundry in the cheder.", "gold": ["cheder"], "pred": []}{"id": "g01069", "text": "How do you file mas hachnasa shelo mitzvot if you're a freelancer?", "gold": [], "pred": ["mas", "hachnasa"]}{"id": "g01070", "text": "mas hachnasa shelo mitzvot, again? I thought I was done with that.", "gold": [], "pred": ["mas", "hachnasa"]}{"id": "g01134", "text": "Did you remember to buy botz?", "gold": ["botz"], "pred": []}{"id": "g01135", "text": "No botz, no party.", "gold": ["botz"], "pred": []}{"id": "g01365", "text": "Do we have any besamim for Havdalah tonight, or did we finish the last box?", "gold": ["besamim", "Havdalah"], "pred": ["besamim"]}{"id": "g01626", "text": "Od paam?! I told you to lock the door before you left.", "gold": [], "pred": ["Od", "paam"]}{"id": "g01627", "text": "Can you play that song od paam, but slower this time?", "gold": [], "pred": ["od", "paam"]}{"id": "g01628", "text": "Every time we argue about the dishes it's the same od paam conversation, and honestly I'm tired of it.", "gold": [], "pred": ["od"]}{"id": "g01869", "text": "Did you remember to take your kapsulot this morning?", "gold": [], "pred": ["kapsulot"]}{"id": "g02040", "text": "Why are you being so chamutz today?", "gold": ["chamutz"], "pred": []}{"id": "g02042", "text": "I bought a bag of those little green apples, but they were so chamutz that even the kids wouldn't eat them.", "gold": ["chamutz"], "pred": []}{"id": "g02114", "text": "I keep the sakin in the drawer next to the stove.", "gold": [], "pred": ["sakin"]}{"id": "g02247", "text": "Which mishnah are we up to this week?", "gold": [], "pred": ["mishnah"]}{"id": "g02248", "text": "mishnah? I haven't even opened the book.", "gold": [], "pred": ["mishnah"]}{"id": "g02249", "text": "Last night I fell asleep halfway through the mishnah.", "gold": [], "pred": ["mishnah"]}{"id": "g03034", "text": "yeri again, right outside the mall.", "gold": ["yeri"], "pred": []}{"id": "g03271", "text": "Mechiron on everything—don't miss it!", "gold": ["Mechiron"], "pred": []}{"id": "g03992", "text": "Tzarchania on the corner, ten minutes before Shabbat — total chaos.", "gold": ["Tzarchania"], "pred": []}{"id": "d_20261014T200315Z_kcg6w6", "text": "I'm circling around Talpiot but I can't find chanaya anywhere, so I'll be about fifteen minutes late.", "gold": ["chanaya"], "pred": ["Talpiot", "chanaya"]}{"id": "d_20261015T065549Z_d79is9", "text": "Don't forget to pick up chatzilim on the way home, the baba ganoush is no good without them.", "gold": ["chatzilim"], "pred": ["chatzilim", "baba", "ganoush"]}{"id": "d_20261015T064357Z_txiltm", "text": "Hey, I won't be around much during Chol Hamoed, so please recreate the venv on the staging server before then and check that the requirements install cleanly.", "gold": ["Chol", "Hamoed"], "pred": ["Chol", "Hamoed", "venv"]}123version https://git-lfs.github.com/spec/v1oid sha256:3ed3aba76839292e668a3726cf01dfaf90cbc141502955998c4bc233aac28ce6size 1708283212345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "250001": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "eos_token": "</s>", "extra_special_tokens": {}, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "XLMRobertaTokenizer", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:cdf1174c9c88da6806fafe786085004630742fc0cbc73c83975506c7cb0624ffsize 5841.gitattributes+1
config.jsonAdded+37
eval_results.jsonAdded+44
model.safetensorsAdded+3
special_tokens_map.jsonAdded+15
test_errors.jsonlAdded+41
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+55
training_args.binAdded+3