Token Classification
Transformers
ONNX
Safetensors
English
Japanese
Chinese
bert
anime
filename-parsing
Eval Results (legacy)
Run this model with HF Jobs
Run ModerRAS/AniFileBERT 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/ModerRAS/AniFileBERT. 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/ModerRAS/AniFileBERT 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 ModerRAS/AniFileBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModerRAS/AniFileBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ModerRAS/AniFileBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ModerRAS/AniFileBERT") model = AutoModelForTokenClassification.from_pretrained("ModerRAS/AniFileBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Balance synthetic movie and special path bases
Browse files962 unmodified lines96396496596696796896918 unmodified lines98898999099199299399499599699799899910001001100210031004100510061007100810091010962 unmodified lines}fn simple_path_leaf_records() -> Vec<Record> {vec![char_record_from_spans("03.mkv",&[(0, 2, Entity::Episode)],18 unmodified lines"path_leaf_sxe","path_aug",),char_record_from_spans("Movie.mkv",&[(0, 5, Entity::Tag)],"schema_v2_synthetic_path_leaf","path_leaf_movie","path_leaf_movie","path_aug",),char_record_from_spans("NCOP2.mkv",&[(0, 5, Entity::Special)],"schema_v2_synthetic_path_leaf","path_leaf_special","path_leaf_special","path_aug",),]}fn char_record_from_spans(962 unmodified lines96396496596696796896918 unmodified lines9889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054962 unmodified lines}fn simple_path_leaf_records() -> Vec<Record> {let mut records = vec![char_record_from_spans("03.mkv",&[(0, 2, Entity::Episode)],18 unmodified lines"path_leaf_sxe","path_aug",),];const MOVIE_TAGS: [&str; 6] = ["Movie","Gekijouban","The Movie","Film","BDMovie","劇場版",];const MOVIE_SUFFIXES: [&str; 12] = [""," 01"," 02"," 2004"," 1080p"," BDRip"," WEB-DL"," Remux"," Complete"," Director Cut"," Part A"," Part B",];for (tag_idx, tag) in MOVIE_TAGS.iter().enumerate() {for (suffix_idx, suffix) in MOVIE_SUFFIXES.iter().enumerate() {let filename = format!("{tag}{suffix}.mkv");let template_id = format!("path_leaf_movie_{tag_idx}_{suffix_idx}");records.push(char_record_from_spans(&filename,&[(0, tag.len(), Entity::Tag)],"schema_v2_synthetic_path_leaf",&template_id,"path_leaf_movie","path_aug",));}}const SPECIAL_TAGS: [&str; 12] = ["NCOP", "NCOP2", "NCED", "NCED2", "OP", "OP2", "ED", "ED1", "PV", "CM", "Menu", "Trailer",];const SPECIAL_SUFFIXES: [&str; 8] =["", " 01", " 02", " A", " B", " Clean", " Creditless", " v2"];for (tag_idx, tag) in SPECIAL_TAGS.iter().enumerate() {for (suffix_idx, suffix) in SPECIAL_SUFFIXES.iter().enumerate() {let special_text = format!("{tag}{suffix}");let filename = format!("{special_text}.mkv");let template_id = format!("path_leaf_special_{tag_idx}_{suffix_idx}");records.push(char_record_from_spans(&filename,&[(0, special_text.len(), Entity::Special)],"schema_v2_synthetic_path_leaf",&template_id,"path_leaf_special","path_aug",));}}records}fn char_record_from_spans(
tools/schema_v2_synthetic_augment/src/main.rs+62-18