AI Skill Hub 强烈推荐:OpenMed开源医疗AI 是一款优质的AI工具。已获得 1.3k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
专业的开源医疗AI工具集,整合DeepSeek、GPT、Llama等大模型,提供BERT医学自然语言处理能力。适合医疗AI开发者、医学NLP研究人员和健康科技创业团队使用。
OpenMed开源医疗AI 是一款基于 Python 开发的开源工具,专注于 医疗AI、自然语言处理、开源工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
专业的开源医疗AI工具集,整合DeepSeek、GPT、Llama等大模型,提供BERT医学自然语言处理能力。适合医疗AI开发者、医学NLP研究人员和健康科技创业团队使用。
OpenMed开源医疗AI 是一款基于 Python 开发的开源工具,专注于 医疗AI、自然语言处理、开源工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install openmed
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install openmed
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/maziyarpanahi/openmed
cd openmed
pip install -e .
# 验证安装
python -c "import openmed; print('安装成功')"
# 命令行使用
openmed --help
# 基本用法
openmed input_file -o output_file
# Python 代码中调用
import openmed
# 示例
result = openmed.process("input")
print(result)
# openmed 配置文件示例(config.yml) app: name: "openmed" debug: false log_level: "INFO" # 运行时指定配置文件 openmed --config config.yml # 或通过环境变量配置 export OPENMED_API_KEY="your-key" export OPENMED_OUTPUT_DIR="./output"
<img src="docs/brand/openmed-mascot-lockup.png" alt="OpenMed — local-first healthcare AI" width="400" />
<a href="https://trendshift.io/repositories/40195?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-40195" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/40195" alt="maziyarpanahi%2Fopenmed | Trendshift" width="250" height="55"/></a>
<p><b>Turn clinical text into structured insight with one line of code.</b><br/> Entity extraction, PII de-identification, and 1,000+ specialized medical models that run entirely on your own hardware — from a one-liner in Python to native Swift apps, REST services, and browser token classification through Transformers.js/WebGPU. No cloud. No vendor lock-in. No patient data leaving your network.</p>
<p> <a href="https://pypi.org/project/openmed/"><img alt="PyPI" src="https://img.shields.io/pypi/v/openmed?style=for-the-badge&label=PyPI&logo=pypi&logoColor=white&color=0D6E6E"></a> <a href="https://www.python.org/downloads/"><img alt="Python" src="https://img.shields.io/badge/Python-3.10+-128787?style=for-the-badge&logo=python&logoColor=white"></a> <a href="https://huggingface.co/OpenMed"><img alt="Models" src="https://img.shields.io/badge/%F0%9F%A4%97%20Models-1%2C000+-F5E27A?style=for-the-badge&labelColor=0E1116"></a> <a href="https://arxiv.org/abs/2508.01630"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2508.01630-C5453A?style=for-the-badge&logo=arxiv&logoColor=white"></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-0A5656?style=for-the-badge"></a> <a href="https://github.com/maziyarpanahi/openmed/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/maziyarpanahi/openmed?style=for-the-badge&logo=github&logoColor=0E1116&color=F5E27A&labelColor=0E1116"></a> </p>
<p> <a href="swift/OpenMedKit"><img alt="Swift — OpenMedKit" src="https://img.shields.io/badge/Swift-OpenMedKit-0D6E6E?style=for-the-badge&logo=swift&logoColor=white"></a> <a href="docs/mlx-backend.md"><img alt="Apple Silicon — MLX" src="https://img.shields.io/badge/Apple_Silicon-MLX-0E1116?style=for-the-badge&logo=apple&logoColor=white"></a> <a href="docs/export-transformersjs.md"><img alt="Browser — Transformers.js" src="https://img.shields.io/badge/Browser-Transformers.js-128787?style=for-the-badge&logo=javascript&logoColor=white"></a> <a href="docs/swift-openmedkit.md"><img alt="Platforms" src="https://img.shields.io/badge/Runs_on-iOS,_iPadOS,_macOS-1C2128?style=for-the-badge&logo=apple&logoColor=white"></a> <a href="https://openmed.life/docs"><img alt="Docs" src="https://img.shields.io/badge/Docs-openmed.life-128787?style=for-the-badge&logo=readthedocs&logoColor=white"></a> </p>
<p> <b>1,000+ models</b> · <b>15 languages</b> · <b>247 PII checkpoints</b> · <b>100% on-device</b> · <b>Apache-2.0</b> </p>
<p> <b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.es.md">Español</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.it.md">Italiano</a> · <a href="README.pt.md">Português</a> · <a href="README.nl.md">Nederlands</a> · <a href="README.ar.md">العربية</a> · <a href="README.hi.md">हिन्दी</a> · <a href="README.te.md">తెలుగు</a> · <a href="README.ja.md">日本語</a> · <a href="README.tr.md">Türkçe</a> · <a href="README.fa.md">فارسی</a> </p>
</div>
---
docker build -t openmed:1.7.0 . docker run --rm -p 8080:8080 -e OPENMED_PROFILE=prod openmed:1.7.0
bash curl -X POST http://127.0.0.1:8080/pii/extract \ -H "Content-Type: application/json" \ -d '{"text":"Paciente: Maria Garcia, DNI: 12345678Z","lang":"es"}'
**Model lifecycle and service controls:** free memory on demand with
`GET /models/loaded`, `POST /models/unload`, and a `keep_alive` idle window;
v1.7 also adds warm pools, dynamic batching, request coalescing, rate and
concurrency limits, `/livez`, `/readyz`, and opt-in metrics:
bash OPENMED_SERVICE_KEEP_ALIVE=10m uvicorn openmed.service.app:app --host 0.0.0.0 --port 8080 curl -X POST http://127.0.0.1:8080/models/unload -H "Content-Type: application/json" -d '{"all":true}' ```
See the full REST service guide.
---
```python from openmed import analyze_text
result = analyze_text( "Patient started on imatinib for chronic myeloid leukemia.", model_name="disease_detection_superclinical", )
for entity in result.entities: print(f"{entity.label:<12} {entity.text:<28} {entity.confidence:.2f}")
```bash
A Docker-friendly FastAPI service with request validation, shared pipeline preload, and unified error envelopes.
```bash pip install "openmed[hf,service]" uvicorn openmed.service.app:app --host 0.0.0.0 --port 8080
OpenMed 是一个生产级医学自然语言处理工具包,基于最先进的 Transformer 模型构建。它能将临床文本转换为结构化洞察,仅需一行代码即可实现。OpenMed 提供企业级的实体提取、断言检测和医学推理能力,无供应商锁定,精度无妥协。
核心功能包括:精选模型注册表(12+ 专业医学 NER 模型)、HIPAA 合规的 PII 检测与去识别、医学感知分词(支持 COVID-19、CAR-T、IL-6 等临床模式)、高级 NER 处理(置信度过滤、实体分组、跨度对齐)、多种输出格式支持。
支持多种安装方式:基础 Hugging Face 支持、REST 服务依赖、Apple Silicon 加速。Swift 应用可使用 OpenMedKit,版本 1.5.1+ 支持 MLX 在 Apple Silicon macOS 及真实 iPhone/iPad 硬件上的加速。
通过 uv pip 安装:`uv pip install -e ".[hf]"`(Hugging Face 支持)或 `uv pip install -e ".[hf,service]"`(REST 服务)。Docker 部署:构建镜像 `docker build -t openmed:1.5.1 .`,运行容器 `docker run --rm -p 8080:8080 -e OPENMED_PROFILE=prod openmed:1.5.1`。
快速开始示例:通过 curl 向 REST API 发送 POST 请求到 `/pii/extract` 端点,传入 JSON 格式的文本和语言参数。详细服务指南见 REST Service 文档。API 响应采用统一信封格式,非 2xx 响应包含错误代码、消息和详细信息。
支持配置文件管理,可通过 `analyze_text` 函数调用。支持多个配置文件(如 prod 生产环境配置),通过环境变量 `OPENMED_PROFILE` 指定。
OpenMed 包含 Docker 友好的 FastAPI 服务,具有可靠性加固。提供的端点包括:`GET /health`(健康检查)、`POST /analyze`(文本分析)、`POST /pii/extract`(PII 提取)、`POST /pii/deidentify`(去识别)。
医疗AI领域优质开源项目,模型集成度高、文档完善。Stars持续增长体现市场认可,适合专业开发。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,OpenMed开源医疗AI 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | openmed |
| 原始描述 | 开源AI工具:open-source healthcare ai。⭐1.3k · Python |
| Topics | 医疗AI自然语言处理开源工具大模型集成深度学习 |
| GitHub | https://github.com/maziyarpanahi/openmed |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-24 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。