flipped121364 commited on
Commit
5f11a0a
·
verified ·
1 Parent(s): b060cf6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ license: mit
5
+ task_categories:
6
+ - text-classification
7
+ task_ids:
8
+ - multi-class-classification
9
+ tags:
10
+ - knowledge-graph
11
+ - supply-chain
12
+ - relation-extraction
13
+ - chinese
14
+ - industry
15
+ pretty_name: Supply Chain Triplets (Chinese)
16
+ size_categories:
17
+ - 100K<n<1M
18
+ ---
19
+
20
+ # Supply Chain Triplets
21
+
22
+ 中文供应链/产业链关系三元组数据集,用于训练关系分类模型。
23
+
24
+ ## 数据说明
25
+
26
+ 每条样本为一个三元组 `[entity1, relation, entity2]`:
27
+
28
+ | 字段 | 说明 |
29
+ |------|------|
30
+ | entity1 | 主体行业/产品 |
31
+ | relation | 关系类型:`上游` / `下游` / `其他` |
32
+ | entity2 | 客体行业/产品 |
33
+
34
+ **关系定义:**
35
+ - **上游**:entity1 为 entity2 提供原材料或服务
36
+ - **下游**:entity1 使用 entity2 的产品或服务
37
+ - **其他**:竞争、互补、监管等非直接上下游关系
38
+
39
+ ## 数据规模
40
+
41
+ | 文件 | 条数 |
42
+ |------|------|
43
+ | train.txt | ~513,000 |
44
+ | industry_test.json | ~120 |
45
+ | industry_test_small.json | 30 |
46
+
47
+ ## 数据格式
48
+
49
+ **train.txt**(CSV,每行一条):
50
+ ```
51
+ 钢铁冶炼,上游,汽车制造
52
+ 汽车制造,下游,钢铁工业
53
+ 传统能源,其他,新能源
54
+ ```
55
+
56
+ **\*_test.json**(JSON 数组):
57
+ ```json
58
+ [["钢铁冶炼", "上游", "汽车制造"], ...]
59
+ ```
60
+
61
+ ## 使用示例
62
+
63
+ ```python
64
+ from datasets import load_dataset
65
+
66
+ ds = load_dataset("wuhongfei/supply-chain-triplets")
67
+
68
+ # 加载训练集(txt 格式)
69
+ for line in open("train.txt", encoding="utf-8"):
70
+ entity1, relation, entity2 = line.strip().split(",")
71
+ ```
72
+
73
+ ## 覆盖领域
74
+
75
+ 能源、化工、电子、建材、纺织、医药、食品、机械、交通、房地产、环保等中国主要产业链。
76
+
77
+ ## 关联项目
78
+
79
+ - **代码**:[github.com/wuhongfei/supply-chain-bert](https://github.com/wuhongfei/supply-chain-bert)
80
+ - **模型**:[huggingface.co/wuhongfei/supply-chain-bert](https://huggingface.co/wuhongfei/supply-chain-bert)
81
+
82
+ ## License
83
+
84
+ MIT