misc: update
Browse files- README.md +3 -3
- assets/{demo1.png → demo.png} +0 -0
- demo1.ipynb → demo.ipynb +8 -7
- demo2.ipynb +0 -130
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# Auto Tabular Completion with In-Context Learning
|
2 |
|
3 |
-
![](https://img.shields.io/github/last-commit/Ki-Seki/autotab?color=green) [![](https://img.shields.io/badge/-%F0%9F%A4%97%20HuggingFace%20Space-orange?style=flat)](https://huggingface.co/spaces/Ki-Seki/AutoTab)
|
4 |
|
5 |
Welcome to Auto Tabular Completion. It automatically fill in missing values in tabular data using in-context learning techniques. This tool leverages the capabilities of LLMs to predict output values based on given input data.
|
6 |
|
@@ -8,9 +8,9 @@ Welcome to Auto Tabular Completion. It automatically fill in missing values in t
|
|
8 |
|
9 |
## Usage
|
10 |
|
11 |
-
Check [
|
12 |
|
13 |
-
Check [
|
14 |
|
15 |
> [!Note]
|
16 |
> **Give it a try with my personal key in the two demo notebooks (valid until 2024-11-01).** [Silicon Flow](https://cloud.siliconflow.cn/) provides free API. You can sign up and get your own API key.
|
|
|
1 |
# Auto Tabular Completion with In-Context Learning
|
2 |
|
3 |
+
![](https://img.shields.io/github/last-commit/Ki-Seki/autotab?color=green) [![](https://img.shields.io/badge/-%F0%9F%A4%97%20HuggingFace%20Space-orange?style=flat)](https://huggingface.co/spaces/Ki-Seki/AutoTab) [![](https://img.shields.io/badge/-%F0%9F%A4%96%20ModelScope%20Space-blue?style=flat)](https://www.modelscope.cn/studios/KiSeki/AutoTab)
|
4 |
|
5 |
Welcome to Auto Tabular Completion. It automatically fill in missing values in tabular data using in-context learning techniques. This tool leverages the capabilities of LLMs to predict output values based on given input data.
|
6 |
|
|
|
8 |
|
9 |
## Usage
|
10 |
|
11 |
+
Check [demo.ipynb](demo.ipynb) for more details.
|
12 |
|
13 |
+
Check [![](https://img.shields.io/badge/-%F0%9F%A4%97%20HuggingFace%20Space-orange?style=flat)](https://huggingface.co/spaces/Ki-Seki/AutoTab) and [![](https://img.shields.io/badge/-%F0%9F%A4%96%20ModelScope%20Space-blue?style=flat)](https://www.modelscope.cn/studios/KiSeki/AutoTab) for direct usage.
|
14 |
|
15 |
> [!Note]
|
16 |
> **Give it a try with my personal key in the two demo notebooks (valid until 2024-11-01).** [Silicon Flow](https://cloud.siliconflow.cn/) provides free API. You can sign up and get your own API key.
|
assets/{demo1.png → demo.png}
RENAMED
File without changes
|
demo1.ipynb → demo.ipynb
RENAMED
@@ -9,7 +9,7 @@
|
|
9 |
"name": "stderr",
|
10 |
"output_type": "stream",
|
11 |
"text": [
|
12 |
-
"
|
13 |
]
|
14 |
},
|
15 |
{
|
@@ -23,7 +23,7 @@
|
|
23 |
"name": "stderr",
|
24 |
"output_type": "stream",
|
25 |
"text": [
|
26 |
-
"\
|
27 |
]
|
28 |
}
|
29 |
],
|
@@ -34,15 +34,16 @@
|
|
34 |
"autotab = AutoTab(\n",
|
35 |
" in_file_path=\"data/en_qa_input.xlsx\",\n",
|
36 |
" out_file_path=\"data/en_qa_output.xlsx\",\n",
|
|
|
37 |
" max_examples=5,\n",
|
38 |
" model_name=\"Qwen/Qwen2-7B-Instruct\",\n",
|
39 |
-
" api_key=\"sk-exhahhjfqyanmwewndukcqtrpegfdbwszkjucvcpajdufiah\",\n",
|
40 |
-
" base_url=\"https://public-beta-api.siliconflow.cn/v1\",\n",
|
41 |
" generation_config={\"temperature\": 0, \"max_tokens\": 128},\n",
|
|
|
|
|
|
|
42 |
" save_every=10,\n",
|
43 |
-
" instruction='You should help me classify the questions and answer them.',\n",
|
44 |
")\n",
|
45 |
-
"autotab.run()
|
46 |
]
|
47 |
},
|
48 |
{
|
@@ -102,7 +103,7 @@
|
|
102 |
"name": "python",
|
103 |
"nbconvert_exporter": "python",
|
104 |
"pygments_lexer": "ipython3",
|
105 |
-
"version": "3.
|
106 |
}
|
107 |
},
|
108 |
"nbformat": 4,
|
|
|
9 |
"name": "stderr",
|
10 |
"output_type": "stream",
|
11 |
"text": [
|
12 |
+
" "
|
13 |
]
|
14 |
},
|
15 |
{
|
|
|
23 |
"name": "stderr",
|
24 |
"output_type": "stream",
|
25 |
"text": [
|
26 |
+
"\r"
|
27 |
]
|
28 |
}
|
29 |
],
|
|
|
34 |
"autotab = AutoTab(\n",
|
35 |
" in_file_path=\"data/en_qa_input.xlsx\",\n",
|
36 |
" out_file_path=\"data/en_qa_output.xlsx\",\n",
|
37 |
+
" instruction=\"You should help me classify the questions and answer them.\",\n",
|
38 |
" max_examples=5,\n",
|
39 |
" model_name=\"Qwen/Qwen2-7B-Instruct\",\n",
|
|
|
|
|
40 |
" generation_config={\"temperature\": 0, \"max_tokens\": 128},\n",
|
41 |
+
" request_interval=0.01,\n",
|
42 |
+
" api_keys=[\"sk-exhahhjfqyanmwewndukcqtrpegfdbwszkjucvcpajdufiah\"],\n",
|
43 |
+
" base_url=\"https://public-beta-api.siliconflow.cn/v1\",\n",
|
44 |
" save_every=10,\n",
|
|
|
45 |
")\n",
|
46 |
+
"autotab.run()"
|
47 |
]
|
48 |
},
|
49 |
{
|
|
|
103 |
"name": "python",
|
104 |
"nbconvert_exporter": "python",
|
105 |
"pygments_lexer": "ipython3",
|
106 |
+
"version": "3.12.2"
|
107 |
}
|
108 |
},
|
109 |
"nbformat": 4,
|
demo2.ipynb
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"cells": [
|
3 |
-
{
|
4 |
-
"cell_type": "code",
|
5 |
-
"execution_count": 1,
|
6 |
-
"metadata": {},
|
7 |
-
"outputs": [
|
8 |
-
{
|
9 |
-
"name": "stderr",
|
10 |
-
"output_type": "stream",
|
11 |
-
"text": [
|
12 |
-
"100%|██████████| 83/83 [01:19<00:00, 1.05it/s]"
|
13 |
-
]
|
14 |
-
},
|
15 |
-
{
|
16 |
-
"name": "stdout",
|
17 |
-
"output_type": "stream",
|
18 |
-
"text": [
|
19 |
-
"Results saved to data/ch_patent_output.xlsx\n"
|
20 |
-
]
|
21 |
-
},
|
22 |
-
{
|
23 |
-
"name": "stderr",
|
24 |
-
"output_type": "stream",
|
25 |
-
"text": [
|
26 |
-
"\n"
|
27 |
-
]
|
28 |
-
}
|
29 |
-
],
|
30 |
-
"source": [
|
31 |
-
"from autotab import AutoTab\n",
|
32 |
-
"\n",
|
33 |
-
"\n",
|
34 |
-
"instruction = \"\"\"你是一位专利分类专家,擅长判断专利是否属于智能化专利。请根据我提供的“智能化专利”定义、示例以及某专利的摘要,判断该专利是否属于智能化专利。\n",
|
35 |
-
"\n",
|
36 |
-
"## 智能化专利定义\n",
|
37 |
-
"\n",
|
38 |
-
"智能化专利是指通过利用先进智能技术(包括但不限于人工智能、高端芯片、量子信息、物联网、区块链、工业互联网和元宇宙)来提升系统、设备或流程的自主决策能力、自动化程度和优化效果的专利。这些专利旨在显著提高效率、减少错误、提升生产力,甚至实现新的功能和应用场景。例如,专利摘要中如果明确提到“使用人工智能技术”或“利用物联网技术”等词句的描述,则可以归为智能化专利。又例如,即使专利摘要中未出现这些明显词句,但如果描述了一种智能系统或设备,通过其自主运行或优化功能,能够在实际应用中减少人力操作,这类专利也可归为智能化专利。\n",
|
39 |
-
"\n",
|
40 |
-
"## 注意事项\n",
|
41 |
-
"\n",
|
42 |
-
"* 判断依据需要精简,一两句话即可。\n",
|
43 |
-
"* 请只回答判断依据和判断,不要包括任何多余内容。\n",
|
44 |
-
"\n",
|
45 |
-
"## 示例\"\"\"\n",
|
46 |
-
"\n",
|
47 |
-
"autotab = AutoTab(\n",
|
48 |
-
" in_file_path=\"data/ch_patent_input.xlsx\",\n",
|
49 |
-
" out_file_path=\"data/ch_patent_output.xlsx\",\n",
|
50 |
-
" max_examples=4,\n",
|
51 |
-
" model_name=\"Qwen/Qwen2-7B-Instruct\",\n",
|
52 |
-
" api_key=\"sk-exhahhjfqyanmwewndukcqtrpegfdbwszkjucvcpajdufiah\",\n",
|
53 |
-
" base_url=\"https://public-beta-api.siliconflow.cn/v1\",\n",
|
54 |
-
" generation_config={\"temperature\": 0, \"max_tokens\": 512},\n",
|
55 |
-
" save_every=10,\n",
|
56 |
-
" instruction=instruction,\n",
|
57 |
-
")\n",
|
58 |
-
"autotab.run()\n"
|
59 |
-
]
|
60 |
-
},
|
61 |
-
{
|
62 |
-
"cell_type": "code",
|
63 |
-
"execution_count": 2,
|
64 |
-
"metadata": {},
|
65 |
-
"outputs": [
|
66 |
-
{
|
67 |
-
"name": "stdout",
|
68 |
-
"output_type": "stream",
|
69 |
-
"text": [
|
70 |
-
"你是一位专利分类专家,擅长判断专利是否属于智能化专利。请根据我提供的“智能化专利”定义、示例以及某专利的摘要,判断该专利是否属于智能化专利。\n",
|
71 |
-
"\n",
|
72 |
-
"## 智能化专利定义\n",
|
73 |
-
"\n",
|
74 |
-
"智能化专利是指通过利用先进智能技术(包括但不限于人工智能、高端芯片、量子信息、物联网、区块链、工业互联网和元宇宙)来提升系统、设备或流程的自主决策能力、自动化程度和优化效果的专利。这些专利旨在显著提高效率、减少错误、提升生产力,甚至实现新的功能和应用场景。例如,专利摘要中如果明确提到“使用人工智能技术”或“利用物联网技术”等词句的描述,则可以归为智能化专利。又例如,即使专利摘要中未出现这些明显词句,但如果描述了一种智能系统或设备,通过其自主运行或优化功能,能够在实际应用中减少人力操作,这类专利也可归为智能化专利。\n",
|
75 |
-
"\n",
|
76 |
-
"## 注意事项\n",
|
77 |
-
"\n",
|
78 |
-
"* 判断依据需要精简,一两句话即可。\n",
|
79 |
-
"* 请只回答判断依据和判断,不要包括任何多余内容。\n",
|
80 |
-
"\n",
|
81 |
-
"## 示例\n",
|
82 |
-
"\n",
|
83 |
-
"<摘要>本发明公开了一种电动汽车智能节能充电桩系统及充电优化方法,属于汽车充电桩技术领域,包括车辆识别模块、充电预约模块、充电模块和服务器;所述充电预约模块用于电动汽车用户预约充电桩,建立预约通道,用户进行身份注册,将用户的注册信息进行储存,并生成识别标志;用户通过预约通道预约充电桩,设置充电预约时间YT、等待计费价格JG和等待时长DT,并将预约信息发送到车辆识别模块;所述车辆识别模块用于识别电动车辆,当识别成功时,通过充电模块对电动车辆进行充电;通过设置充电预约时间YT、等待计费价格JG和等待时长DT,督促用户在预约后能够按时到达停车位,避免预约后,也没有按时充电,造成资源的浪费。</摘要>\n",
|
84 |
-
"<判断依据>此发明利用了电动汽车充电预约系统,有智能优化方法,但未明确提及人工智能、物联网、量子信息等其他智能技术,主要依赖于电动汽车充电设备的智能化管理,因此可以归类为智能化专利。</判断依据>\n",
|
85 |
-
"<判断>是</判断>\n",
|
86 |
-
"\n",
|
87 |
-
"<摘要>本发明公开了一种超声成像方法及系统、存储介质、处理器和计算机设备。其中,该方法包括:获取胎儿头颅的三维体数据,其中,三维体数据是经超声对头颅进行扫查后得到的数据;分解三维体数据,生成预定数量的二维切面图像;分别对预定数量的二维切面图像进行分割,得到二维切面图像中颅内区域的轮廓;根据预定数量的二维切面图像中颅内区域的轮廓,拟合出头颅的三维颅脑轮廓;根据三维颅脑轮廓,确定头颅中颅脑的体积。本发明解决了相关技术中的测量方式,准确率较低,测量速度较慢的技术问题。</摘要>\n",
|
88 |
-
"<判断依据>此发明利用了超声成像技术,通过三维体数据处理和图像分割等方法,实现了对胎儿头颅的精确测量,体现了智能化处理和优化效果,属于智能化专利范畴。</判断依据>\n",
|
89 |
-
"<判断>是</判断>\n",
|
90 |
-
"\n",
|
91 |
-
"<摘要>一种锂离子电池正极活性物质磷酸亚铁锂的制备方法,该方法包括将高\\r\\n\\r\\n\\r\\n\\r\\n分子聚合物、磷源化合物、铁源化合物和锂源化合物混合后进行烧结,其中,\\r\\n\\r\\n\\r\\n\\r\\n所述铁源化合物为铁的非二价化合物;所述高分子聚合物、磷源化合物和锂\\r\\n\\r\\n\\r\\n\\r\\n源化合物与铁的非二价化合物的混合在溶液中进行,得到的混合溶液除去溶\\r\\n\\r\\n\\r\\n\\r\\n剂之后得到凝胶体,然后将所得凝胶体进行烧结。本发明选用铁的非二价化\\r\\n\\r\\n\\r\\n\\r\\n合物为原料,大大降低成本,而且制备方法简单易行。利用本发明方法制得\\r\\n\\r\\n\\r\\n\\r\\n的磷酸亚铁锂作为正极活性物质,使得电池具有较高的首次放电比容量和良\\r\\n\\r\\n\\r\\n\\r\\n好的循环性能。并且用本发明方法制得的磷酸亚铁锂成分固定、颗粒均匀、\\r\\n\\r\\n\\r\\n\\r\\n导电性好。</摘要>\n",
|
92 |
-
"<判断依据>此发明主要涉及电池制备方法,未明确提及使用了先进智能技术,如人工智能、物联网等。</判断依据>\n",
|
93 |
-
"<判断>否</判断>\n",
|
94 |
-
"\n",
|
95 |
-
"<摘要>本实用新型公开了一种水泵井壁支撑装置,用于实现水泵与井壁之间的分隔支撑,解决了现有类似装置的结构复杂,使用时不能保证顺畅的问题,所采取的技术方案:一种水泵井壁支撑装置,用于实现水泵与井壁之间的支撑,包括支撑件,支撑件包括用于联接在水泵壳体上的联接部,其特征在于,联接部上设有若干支撑部,这些支撑部在联接部的外周面上突出设置,这些支撑部呈放射状布置在联接部上。本水泵井壁支撑装置结构简单,造价低,使用稳定性好,能够为水泵与井壁之间提供良好的分隔支撑作用。 来自马克数据网</摘要>\n",
|
96 |
-
"<判断依据>此发明主要关注于水泵井壁支撑装置的结构设计,未提及使用任何智能技术,如人工智能、物联网等,因此主要依赖于物理结构的优化,而非智能技术提升效率或自动化。</判断依据>\n",
|
97 |
-
"<判断>否</判断>\n",
|
98 |
-
"\n",
|
99 |
-
"<摘要>本实用新型提供了一种翻转梁,包括底座、前盖,底座上设有导向结构,导向结构包括导向件、弹簧,导向件的一端从底座的上端对应开孔穿出,弹簧的一端连接于导向件,弹簧的另一端连接于底座,底座设有一对用于限制导向件直线移动的第一限位件。本实用新型提供的翻转梁及冰箱,其连接于底座与导向件之间的弹簧使得导向件可以伸缩,配合设于底座、前盖和导向件上的限位件,从而让导向凸起进入导向槽中并向下运动,待导向凸起脱离导向槽并进入导向凸起安装座中时利用弹簧的回复作用使导向件回到初始位置,同时在导向结构沿导向槽滑动的过程中起到缓冲的作用,并方便了弹簧的安装,同时导向件大部分结构位于翻转梁内部,开门时不影响冰箱的外观。</摘要>\n",
|
100 |
-
"\n"
|
101 |
-
]
|
102 |
-
}
|
103 |
-
],
|
104 |
-
"source": [
|
105 |
-
"print(autotab.query_example)"
|
106 |
-
]
|
107 |
-
}
|
108 |
-
],
|
109 |
-
"metadata": {
|
110 |
-
"kernelspec": {
|
111 |
-
"display_name": "common",
|
112 |
-
"language": "python",
|
113 |
-
"name": "python3"
|
114 |
-
},
|
115 |
-
"language_info": {
|
116 |
-
"codemirror_mode": {
|
117 |
-
"name": "ipython",
|
118 |
-
"version": 3
|
119 |
-
},
|
120 |
-
"file_extension": ".py",
|
121 |
-
"mimetype": "text/x-python",
|
122 |
-
"name": "python",
|
123 |
-
"nbconvert_exporter": "python",
|
124 |
-
"pygments_lexer": "ipython3",
|
125 |
-
"version": "3.11.5"
|
126 |
-
}
|
127 |
-
},
|
128 |
-
"nbformat": 4,
|
129 |
-
"nbformat_minor": 2
|
130 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|