deidentifying-multilingual-text

仓库创建 2025年10月4日最近提交 3 小时前SkillHot 收录 3 小时前
▸ 精选理由

支持多语种与地区格式,适合跨国医疗文本处理

▸ 风险提示

不同语言的脱敏效果可能不一致,需要逐语言验证。

这个 Skill 做什么

对多种非英语临床文本进行本地化去标识化并生成语言相关的替代词。

在本地对非英语的临床文本做去标识化,并生成符合本地习惯的替代词(比如名字、身份证号格式等)。碰到西班牙语、德语、法语、印地语、阿拉伯语、日语等临床笔记想做 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.

数据与抓取多语言脱敏本地化伪造替代通用
4.7k
Stars
581
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-multilingual-text/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-multilingual-text/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有