CoolFace
Datasetpublic

ganga4364/tibetan-metadata-detector

Tibetan Metadata Detector Dataset RoBERTa sliding-window training data for Tibetan title and author span detection from BDRC outliner exports. Contents (windows config) Balanced window splits (fixed window-relative BIO labeling, O-only subsampling, author oversampling): Split Description train ~89% of documents (stratified) validation ~1% (small val for fast eval) test ~10% Balancing applied before split: O-only windows capped at 2×… See the full description on the dataset page: https://huggingface.co/datasets/ganga4364/tibetan-metadata-detector.

sourceHugging Facecc-by-4.0updated 3mo agoView on Hugging Face
0likes108downloads
Dataset Card

Tibetan Metadata Detector Dataset

RoBERTa sliding-window training data for Tibetan title and author span detection from BDRC outliner exports.

Contents (windows config)

Balanced window splits (fixed window-relative BIO labeling, O-only subsampling, author oversampling):

SplitDescription
train~89% of documents (stratified)
validation~1% (small val for fast eval)
test~10%

Balancing applied before split:

  • —O-only windows capped at 2× entity-bearing windows per segment
  • —Author-bearing windows duplicated 2×
  • —Document-level stratified split 89% / 1% / 10%

Raw extracted documents: ganga4364/tibetan-metadata-extracted

Windowing (train = infer)

  • —Tokenizer: `spsither/tibetan_RoBERTa_S_e3`
  • —Window size: 512 subword tokens, stride 256
  • —Short segments (≤512 tok): 1 window
  • —Long segments: up to 15 begin + 15 end slides with overlap-aware deduplication

Fields

Each row:

  • —input_ids, attention_mask, labels — HuggingFace-ready tensors (512 len)
  • —offset_mapping — char offsets per token (segment-relative)
  • —window_name, window_side, slide_index, window_annotations
  • —doc_id, segment_id, segment_tier, has_title, has_author

Usage

python
from datasets import load_dataset

ds = load_dataset("ganga4364/tibetan-metadata-detector", "windows")
train = ds["train"]
val = ds["validation"]
test = ds["test"]

Train on a new GPU instance

bash
pip install -r requirements.txt
python train_roberta.py \
  --hf-dataset ganga4364/tibetan-metadata-detector \
  --hf-config windows \
  --batch-size 64 \
  --epochs 3 \
  --entity-weight 10

Model & demo