deidentifying-multilingual-text
支持多语种与地区格式,适合跨国医疗文本处理
不同语言的脱敏效果可能不一致,需要逐语言验证。
对多种非英语临床文本进行本地化去标识化并生成语言相关的替代词。
在本地对非英语的临床文本做去标识化,并生成符合本地习惯的替代词(比如名字、身份证号格式等)。碰到西班牙语、德语、法语、印地语、阿拉伯语、日语等临床笔记想做 locale-aware 去标识化或处理国家特有的证件号时就用。亮点是每种语言有专门的 PII 模型和正则模式,能按语言生成自然的假数据并做重音/本地化处理。
▸ 展开 SKILL.md 英文原文
De-identify non-English clinical text on-device with OpenMed by passing lang= and locale= to deidentify(). Use when the user has Spanish, German, French, Italian, Portuguese, Dutch, Hindi, Telugu, Arabic, Japanese, or Turkish medical notes, needs locale-aware fake surrogates, must handle language-specific national IDs (DNI, NIR, Steuer-ID, codice fiscale, BSN, CPF, TCKN, Aadhaar), or asks which languages OpenMed PII supports. Covers SUPPORTED_LANGUAGES, get_pii_models_by_language, get_patterns_for_language, LANG_TO_LOCALE, and accent normalization. Pairs with OpenMed deidentifying-clinical-text and generating-synthetic-surrogates.
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-multilingual-text/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-multilingual-text/SKILL.md"# De-identifying multilingual text OpenMed de-identifies clinical text in many languages, each with a dedicated PII model, language-specific regex patterns (national IDs, phone formats), and a locale-aware surrogate generator. Pass `lang=` to `deidentify` / `extract_pii` and the right model, patterns, and fake-data tables are selected automatically. Everything runs **on-device**. ## When to use this skill Use it whenever the source text is not English, or when surrogates must look native to the locale (a German note should get German-looking fake names and a valid-format Steuer-ID surrogate, not a US SSN). ## Discover supported languages at runtime — don't hardcode ```python import open