The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: Failed to parse string: 'ASKAAPNTIIAMKD-UHFFFAOYSA-N' as a scalar of type double
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2155, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2015, in array_cast
return array.cast(pa_type)
~~~~~~~~~~^^^^^^^^^
File "pyarrow/array.pxi", line 1186, in pyarrow.lib.Array.cast
File "/usr/local/lib/python3.14/site-packages/pyarrow/compute.py", line 414, in cast
return call_function("cast", [arr], options, memory_pool)
File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
result = GetResultValue(
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: Failed to parse string: 'ASKAAPNTIIAMKD-UHFFFAOYSA-N' as a scalar of type double
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id int64 | label float64 |
|---|---|
0 | 1 |
1 | 10 |
2 | 100 |
3 | 1,000 |
4 | 10,000 |
5 | 100,008,586 |
6 | 10,001 |
7 | 10,002 |
8 | 10,003 |
9 | 100,033,411 |
10 | 100,034,743 |
11 | 100,037,417 |
12 | 10,004 |
13 | 100,049,587 |
14 | 10,005 |
15 | 10,006 |
16 | 10,007 |
17 | 10,008 |
18 | 10,009 |
19 | 1,001 |
20 | 10,010 |
21 | 100,101,267 |
22 | 100,101,467 |
23 | 100,101,490 |
24 | 10,011 |
25 | 100,113,407 |
26 | 100,125,288 |
27 | 100,125,556 |
28 | 100,126,572 |
29 | 100,126,693 |
30 | 100,127,206 |
31 | 100,127,983 |
32 | 100,128,071 |
33 | 100,128,327 |
34 | 100,128,378 |
35 | 100,128,525 |
36 | 100,128,553 |
37 | 100,128,569 |
38 | 100,128,731 |
39 | 100,128,927 |
40 | 100,129,053 |
41 | 100,129,128 |
42 | 100,129,216 |
43 | 100,129,239 |
44 | 100,129,250 |
45 | 100,129,271 |
46 | 100,129,278 |
47 | 100,129,361 |
48 | 100,129,480 |
49 | 100,129,515 |
50 | 100,129,520 |
51 | 100,129,543 |
52 | 100,129,583 |
53 | 100,129,654 |
54 | 100,129,669 |
55 | 100,129,792 |
56 | 100,129,842 |
57 | 100,129,924 |
58 | 100,129,969 |
59 | 10,013 |
60 | 100,130,097 |
61 | 100,130,274 |
62 | 100,130,301 |
63 | 100,130,302 |
64 | 100,130,311 |
65 | 100,130,348 |
66 | 100,130,361 |
67 | 100,130,519 |
68 | 100,130,520 |
69 | 100,130,613 |
70 | 100,130,705 |
71 | 100,130,733 |
72 | 100,130,742 |
73 | 100,130,771 |
74 | 100,130,827 |
75 | 100,130,890 |
76 | 100,130,932 |
77 | 100,130,933 |
78 | 100,130,958 |
79 | 100,130,967 |
80 | 100,131,017 |
81 | 100,131,137 |
82 | 100,131,187 |
83 | 100,131,211 |
84 | 100,131,244 |
85 | 100,131,303 |
86 | 100,131,378 |
87 | 100,131,390 |
88 | 100,131,439 |
89 | 100,131,608 |
90 | 100,131,755 |
91 | 100,131,801 |
92 | 100,131,816 |
93 | 100,131,827 |
94 | 100,131,897 |
95 | 100,131,902 |
96 | 100,131,980 |
97 | 100,131,997 |
98 | 100,132,015 |
99 | 100,132,074 |
YJT 药精图多源中药研究数据集
YJT 汇集中药、化合物、化学结构、知识图谱、文本表征及药精图分析结果,用于中药五味药性、多模态表征、中药—化合物关系和知识图谱研究。仓库同时保留数据构建脚本、质量控制记录、历史版本和研究分析结果,便于追溯与复现。
本仓库以研究文件快照形式发布,包含 XLSX、CSV、TSV、SDF、JSON、NPY、PT、PDF 等多种格式;它不是已经划分好 train、validation、test 的标准 Hugging Face 表格数据集。
核心整合数据
当前正式整合表位于 data/中药-化合物数据集/整合数据集/:
| 文件 | 记录数 | 主要内容 |
|---|---|---|
中药库_final.xlsx |
8,967 | 中药 ID、中文名、别名、拼音名、拉丁名及来源数据库标记 |
化合物库_final.xlsx |
59,659 | 化合物 ID、PubChem CID、分子式、SMILES、InChI、CAS 等 |
中药_化合物关系表.xlsx |
382,988 | 中药—化合物关系及各来源数据库标记 |
整合数据覆盖 BATMAN-TCM、DCABM-TCM、ETCM2、HERB2、SymMap、TCMIO、TM-MC 等来源。各来源的原始数据、标准化结果、实体审核、映射记录和质量控制过程位于同级子目录中。
目录结构
| 路径 | 内容 |
|---|---|
data/中药-化合物数据集/ |
原始数据、标准化汇总、正式整合表、审核映射和质量控制记录 |
data/研究输入/ |
2025 版药典范围、药性归经、二十五味药精种子和数据库调研资料 |
data/Herb_KG/ |
基础中药知识图谱实体与三元组 |
data/数据处理脚本/ |
数据构建、修复、同步和审计脚本 |
RE/ |
化学指纹、文本嵌入、知识图谱嵌入、KNN、相似度及药精图判别结果 |
Analysis/ |
留一验证、多模态融合和候选一致性分析 |
25药典中药和饮片/ |
2025 版药典相关 PDF 处理结果及文本 |
参考文献/ |
数据库及研究方法相关参考资料 |
archive/数据处理历史版本/ |
历史数据快照和过程备份,不作为当前默认输入 |
recovery_20261030/ |
从原始 ZIP 和 Git 历史恢复的采集与处理脚本 |
论文/、软著/ |
项目论文与软件著作权相关材料 |
hf_oversize_archives/ |
因 Hub 文件数限制而生成的完整目录归档 |
大规模结构文件归档
以下目录包含大量小文件。为避免超过 Hugging Face Hub 的目录文件数和提交频率限制,完整快照以 tar.zst 发布。仓库文件浏览器中若存在早期上传的零散结构文件,也应以这里的归档为准。
| 归档 | 还原目标 | 原始文件数 | SHA-256 |
|---|---|---|---|
hf_oversize_archives/data_SDF.tar.zst |
data/SDF/ |
61,041 | 7919814ab9ae831159f90b6d7249e3bb76621b39aa1ca42c3c7475030e549f36 |
hf_oversize_archives/data_chemical_structures.tar.zst |
data/chemical_structures/ |
225,454 | 9da7f9244a3fc41536a9db2e20723b65b5affbb896129ff8f2d7ae6b07ca62c5 |
hf_oversize_archives/HERB2_ingredient_detail.tar.zst |
HERB2 ingredient detail 历史缓存 | 21,034 | 494e9486ae0fdb123368cfc4389039970e843cefad1c0ce6c28ad0f4d6ba9b1d |
三个归档均以项目根目录为基准保存相对路径。下载后在项目根目录执行:
tar --zstd -xf hf_oversize_archives/data_SDF.tar.zst
tar --zstd -xf hf_oversize_archives/data_chemical_structures.tar.zst
tar --zstd -xf hf_oversize_archives/HERB2_ingredient_detail.tar.zst
原始项目备份 archive/111药精图模型.zip 的大小为 4,875,884,706 bytes,SHA-256 为 3f2cf8ef85291f695a00173c5b61f6fec4719d9d8e78882a3d07f90de301ff54。
下载
安装 Hugging Face CLI 后可下载完整仓库:
hf download JX-Lab/YJT --repo-type dataset --local-dir ./YJT
仓库体积较大。只需要正式整合表时,可按文件下载:
hf download JX-Lab/YJT \
'data/中药-化合物数据集/整合数据集/*' \
--repo-type dataset \
--local-dir ./YJT
Python 读取示例
from pathlib import Path
import pandas as pd
root = Path("YJT/data/中药-化合物数据集/整合数据集")
herbs = pd.read_excel(root / "中药库_final.xlsx")
compounds = pd.read_excel(root / "化合物库_final.xlsx")
relations = pd.read_excel(root / "中药_化合物关系表.xlsx")
print(herbs.shape, compounds.shape, relations.shape)
预期形状分别为 (8967, 12)、(59659, 16) 和 (382988, 9)。
数据构建与复现
- 数据主流程和审计脚本见
data/数据处理脚本/README.md。 - 多模态表征与验证结果见
RE/和Analysis/。 - 历史版本仅用于追溯;新分析默认使用
data/中药-化合物数据集/整合数据集/中的正式表。 - 部分恢复脚本保留了原工作环境中的绝对路径或 Windows 路径,迁移运行前需要先参数化路径,并将输出写入新的工作目录,避免覆盖现有数据。
使用注意事项
- 本仓库没有为全部内容声明统一许可证。来源数据库、药典、论文、模型权重及其他第三方材料可能分别受各自许可或版权条款约束;再分发、公开展示或商业使用前,请核验对应来源的条款并按要求引用。
- 数据来源之间可能存在命名差异、实体映射误差、缺失值和重复记录。正式研究前应结合
审核与映射/、质量控制与过程记录/中的材料复核。 - 本数据集仅用于科研与技术研究,不构成诊断、处方、用药或其他医疗建议。
引用
如使用本数据集,请引用本仓库及实际采用的上游数据库或文献。正式论文引用信息发布后可在本节补充。
- Downloads last month
- 252