Views
No views yet
ja) personally identifiable information (PII) and protected health
information (PHI) span detection.ja)lightonai/modernbert-embed-large1from transformers import pipeline
2
3model_id = "OpenMed/OpenMed-PII-Japanese-NomicMed-Large-395M-v1"
4detector = pipeline(
5 "token-classification",
6 model=model_id,
7 aggregation_strategy="simple",
8)
9
10text = '架空の患者、山田太郎さんのメールアドレスは taro.yamada@example.com、電話番号は 090-0000-0000 です。'
11print(detector(text))id2label mapping is authoritative for the
available entity labels. Preserve returned character offsets when applying
redaction or replacement.