# ChemDataExtractor 2.0

**ChemDataExtractor 2.0** 是[剑桥大学](https://www.edgepedia.org/zh/university-of-cambridge)（University of Cambridge）开发的一款开源、具备化学感知能力的文本挖掘工具包，能够自动从科学期刊论文中提取化学名称、标签、角色、性质数值、误差和单位，并利用这些信息填充材料科学数据库与本体。<sup>[1](http://chemdataextractor2.org/about)</sup> 其 1.x 前代版本提取的是单个性质，而 2.0 版则实现了本体填充的自动化，可提取由语义网络连接的更大规模的性质组。<sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup> 该工具以 Python 包形式发布，可通过 conda 或 pip 安装。<sup>[3](http://chemdataextractor2.org/download)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发者与论文 | 剑桥大学团队；《化学信息与建模杂志》（*Journal of Chemical Information and Modeling*），第 61 卷，第 9 期，第 4280 页（2021/2022）<sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup> |
| 首个 2.0 版本 | 2.0.0 版于 2020 年 5 月 1 日发布；2022 年相继发布 2.1.2 和 2.2.1<sup>[3](http://chemdataextractor2.org/download)</sup> |
| 主要准确率指标 | 针对嵌套数据的 18 个相互关联子模型，跨 26 种期刊评估，总体精确率为 92.2%<sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup> |
| 独立应用结果 | 半导体带隙数据库：在 150 篇抽样文章上，加权精确率 84%，召回率 65%，F 值 73%<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> |
| 最大已建数据库 | 从 128,776 篇文章中提取的 100,236 条带隙记录，含温度信息<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> |
| 单位处理 | 数值以数字和 Unit 对象存储，统一标准化为国际单位制（SI）<sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup><sup> • </sup><sup>[1](http://chemdataextractor2.org/about)</sup> |
| 最新有据可查的变更 | v2.4.0 使用原生 transformers 和 torch 重写了化学命名实体识别标注器，移除了已归档的 allennlp 依赖<sup>[6](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/releases)</sup> |

## 背景与历史

2.x 系列始于 2020 年 5 月 1 日发布的 2.0.0 版，随后在《化学信息与建模杂志》上发表了经同行评审的说明文章，并于 2022 年发布了 2.1.2 和 2.2.1 两个小版本。<sup>[3](http://chemdataextractor2.org/download)</sup><sup> • </sup><sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup> 此次重写保留了前代的全部功能，同时采用了自然语言处理和机器学习算法。<sup>[1](http://chemdataextractor2.org/about)</sup> 2.x 系列的发布说明记录了改进的命名实体识别系统（在无机材料上性能大幅提升）、新的分词机制、允许单个词元满足多个条件的词元条件，以及支持用户在其数据模型中定义不同性质之间的显式链接。<sup>[6](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/releases)</sup>

## 架构与方法

文档记载的处理流程分阶段处理文档：对文本进行分词以分离出单个词元，应用词性标注识别每个词元的语义角色，使用机器学习检测化学命名实体，然后解析文本和表格。<sup>[7](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/_/downloads/en/release/pdf/)</sup> 源码分发包包含 HTML、XML 和 PDF 文档读取器、具备化学感知能力的自然语言处理流程、化学命名实体识别、用于性质与光谱提取的基于规则的解析器、用于表格化数据的表格解析器，以及用于解决记录之间数据相互依赖关系的文档级处理。<sup>[8](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/)</sup>

**结构化输出。** 两项设计变更将 2.x 与 1.x 区分开来。第一，数值和单位此前以字符串存储，现在自动提取并以数字和 Unit 对象存储，便于转换和比较。<sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup> 该工具可提取带有复杂和复合单位的数值，并将输出标准化为国际单位制单位，还能在处理过程中即时获取物理量的定义，而无需对每个符号进行硬编码。<sup>[1](http://chemdataextractor2.org/about)</sup> 第二，新的模型概念支持提取层次化、嵌套的数据，系统可利用文档内表格等数据丰富的来源。<sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup>

**关系抽取。** 三种文本解析方法在精确率与召回率之间进行权衡。AutoSentenceParser 较为宽松，召回率高但精确率低。Snowball 解析器是一种采用自举学习和置信度评分的半监督机器学习模型，基于其训练数据设计为高精确率、低召回率；它输出形式为 {化学名称, 性质, 数值, 单位} 的四元关系数据记录，并已完全集成到 2.x 工作流中，例如用于提取居里温度。<sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup><sup> • </sup><sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jcim.3c01281)</sup> 对于复杂句式以及兼顾高精确率与高召回率的需求，手写解析规则仍然必要。<sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup>

## 性能与验证

作者的主要评估针对晶体学层次结构提取：18 个相互关联的嵌套数据子模型，应用于来自 26 种不同期刊的科学论文评估集，总体精确率达到 92.2%。<sup>[2](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)</sup> 项目官方网站报告了相同的数字。<sup>[1](http://chemdataextractor2.org/about)</sup>

独立的应用层面数字则较低。2022 年一项使用 [ChemDataExtractor](https://www.edgepedia.org/zh/chemdataextractor) 2.0 构建带隙数据库的《科学数据》（*Scientific Data*）研究，在 150 篇随机选取、包含 209 条人工提取记录的论文上评估，估计加权精确率为 84%，加权召回率为 65%，F 值为 73%。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> 在该研究中，仅 AutoSentenceParser 的精确率就达到 72%，低于被认为可替代人工数据提取的典型 80% 阈值；同一论文指出，此前 ChemDataExtractor 工作报告的总体精确率在磁性材料数据库上为 66% 至 73% 之间，在使用自定义解析规则构建的电池材料数据库上约为 80%。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> 具体到 Snowball，据报道精确率约为 90%，召回率约为 50%，因此被定义为高精确率、低召回率解析器。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jcim.3c01281)</sup>

## 数据一览

使用 ChemDataExtractor 2.0 编制的带隙数据库包含从 128,776 篇期刊文章中提取的 100,236 条半导体带隙记录，并附有相关温度信息；能量单位归一化为 eV，温度转换为开尔文。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> 数据库中 21,053 个唯一化学名称中，79% 可被 MaterialParser 解析为组成式，这些已解析名称占全部数据条目的 87%。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup> 数据库作者称这是迄今为止最大的开源非计算型带隙数据库，记录以 CSV、JSON 和 MongoDB 格式提供。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup>

## 应用、局限与使用

ChemDataExtractor 2.0 已被用于从原始文献构建材料数据库，包括上述半导体带隙数据库，以及通过集成的 Snowball 解析器进行[居里温度](https://www.edgepedia.org/zh/curie-temperature)提取。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup><sup> • </sup><sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup>

已知局限源于解析器的权衡取舍。AutoSentenceParser 的精确率低于可替代人工提取的阈值，因此对于复杂句式或兼顾高精确率与高召回率的需求，仍需要手写规则。<sup>[4](https://www.nature.com/articles/s41597-022-01294-6)</sup><sup> • </sup><sup>[5](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)</sup> Snowball 只有在大量训练数据下才能达到高精确率，而其默认召回率较低。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jcim.3c01281)</sup> 该工具为开源软件，可通过 conda 或 pip 安装。<sup>[3](http://chemdataextractor2.org/download)</sup>

## 2023 年以来的变化

2023 年《化学信息与建模杂志》论文中描述的 Snowball 2.0 解析器，相比 Snowball 1.0 将召回率提高了 15% 至 20%，而精确率仅下降几个百分点，在几乎所有配置下都给出更好的 F 值，视相似度阈值不同最多可提升 20%。该解析器在来自 Elsevier、Springer 和 RSC 文章的约 1,500 条半导体带隙句子上进行了评估，按 5:1 划分训练集和测试集，并包含 Snowball 1.0 仿真模式以及用于在低召回率下实现超高精确率的最低置信度过滤器。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jcim.3c01281)</sup>

在软件方面，ChemDataExtractor 2 已更新至 2.4.0 版，其发布说明称化学命名实体识别标注器已使用原生 transformers 和 torch 重写，移除了对已归档 allennlp 包的依赖，该变更归功于贡献者 Dingyun-Huang。<sup>[6](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/releases)</sup>

## References

1. [About | ChemDataExtractor (official project site)](http://chemdataextractor2.org/about)
2. [ChemDataExtractor 2.0: Autopopulated Ontologies for Materials Science, J. Chem. Inf. Model.](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.1c00446)
3. [Download | ChemDataExtractor v2 (official project site)](http://chemdataextractor2.org/download)
4. [Auto-generated database of semiconductor band gaps using ChemDataExtractor, Scientific Data (2022)](https://www.nature.com/articles/s41597-022-01294-6)
5. [ChemDataExtractor 2.x Migration Guide (official documentation)](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/en/latest/migration_guides/migration_guide.html)
6. [Releases · CambridgeMolecularEngineering/chemdataextractor2](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/releases)
7. [ChemDataExtractor Documentation (official, PDF)](https://cambridgemolecularengineering-chemdataextractor-development.readthedocs-hosted.com/_/downloads/en/release/pdf/)
8. [CambridgeMolecularEngineering/chemdataextractor2 (GitHub repository)](https://github.com/CambridgeMolecularEngineering/chemdataextractor2/)
9. [Snowball 2.0: Generic Material Data Parser for ChemDataExtractor, J. Chem. Inf. Model. (2023)](https://pubs.acs.org/doi/full/10.1021/acs.jcim.3c01281)

---
*Initially written Oct 22, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain › Chemical informatics and discovery software

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/chemdataextractor-2-0

English original: https://www.edgepedia.org/chemdataextractor-2-0
