Skip to content

Commit 45d33b8

Browse files
committed
update: toc
1 parent 4e0b09c commit 45d33b8

6 files changed

+92
-12
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
3+
pdf/
34
tnews-finetuning*
45
contribute.md
56
*.drawio
@@ -134,4 +135,4 @@ dmypy.json
134135
# Pyre type checker
135136
.pyre/
136137

137-
.idea
138+
.idea

content/ChatGPT使用指南——句词分类.ipynb

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "44c04ffa",
6+
"metadata": {
7+
"toc": true
8+
},
9+
"source": [
10+
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
11+
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#ChatGPT使用指南——句词分类\" data-toc-modified-id=\"ChatGPT使用指南——句词分类-1\">ChatGPT使用指南——句词分类</a></span><ul class=\"toc-item\"><li><span><a href=\"#1.-NLU基础\" data-toc-modified-id=\"1.-NLU基础-1.1\">1. NLU基础</a></span><ul class=\"toc-item\"><li><span><a href=\"#1.1-句子级别的分类\" data-toc-modified-id=\"1.1-句子级别的分类-1.1.1\">1.1 句子级别的分类</a></span></li><li><span><a href=\"#1.2-Token级别的分类\" data-toc-modified-id=\"1.2-Token级别的分类-1.1.2\">1.2 Token级别的分类</a></span></li></ul></li><li><span><a href=\"#2.-相关API\" data-toc-modified-id=\"2.-相关API-1.2\">2. 相关API</a></span><ul class=\"toc-item\"><li><span><a href=\"#2.1-LMAS-GPT-API\" data-toc-modified-id=\"2.1-LMAS-GPT-API-1.2.1\">2.1 LMAS GPT API</a></span></li><li><span><a href=\"#2.2-ChatGPT-Style\" data-toc-modified-id=\"2.2-ChatGPT-Style-1.2.2\">2.2 ChatGPT Style</a></span></li></ul></li><li><span><a href=\"#3.-NLU应用\" data-toc-modified-id=\"3.-NLU应用-1.3\">3. NLU应用</a></span><ul class=\"toc-item\"><li><span><a href=\"#3.1-文档问答\" data-toc-modified-id=\"3.1-文档问答-1.3.1\">3.1 文档问答</a></span></li><li><span><a href=\"#3.2-分类/实体微调\" data-toc-modified-id=\"3.2-分类/实体微调-1.3.2\">3.2 分类/实体微调</a></span></li><li><span><a href=\"#3.3-智能对话\" data-toc-modified-id=\"3.3-智能对话-1.3.3\">3.3 智能对话</a></span></li></ul></li><li><span><a href=\"#相关文献\" data-toc-modified-id=\"相关文献-1.4\">相关文献</a></span></li></ul></li></ul></div>"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"id": "a54767af",
@@ -4898,7 +4909,7 @@
48984909
],
48994910
"metadata": {
49004911
"kernelspec": {
4901-
"display_name": "Python 3 (ipykernel)",
4912+
"display_name": "Python 3",
49024913
"language": "python",
49034914
"name": "python3"
49044915
},
@@ -4912,7 +4923,7 @@
49124923
"name": "python",
49134924
"nbconvert_exporter": "python",
49144925
"pygments_lexer": "ipython3",
4915-
"version": "3.7.9"
4926+
"version": "3.8.13"
49164927
},
49174928
"latex_envs": {
49184929
"LaTeX_envs_menu_present": true,
@@ -4940,7 +4951,7 @@
49404951
"skip_h1_title": false,
49414952
"title_cell": "Table of Contents",
49424953
"title_sidebar": "Contents",
4943-
"toc_cell": false,
4954+
"toc_cell": true,
49444955
"toc_position": {
49454956
"height": "calc(100% - 180px)",
49464957
"left": "10px",
@@ -4953,4 +4964,4 @@
49534964
},
49544965
"nbformat": 4,
49554966
"nbformat_minor": 5
4956-
}
4967+
}

content/ChatGPT使用指南——文本推理.ipynb

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"toc": true
7+
},
8+
"source": [
9+
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
10+
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#ChatGPT使用指南——推理Reasoning\" data-toc-modified-id=\"ChatGPT使用指南——推理Reasoning-1\">ChatGPT使用指南——推理Reasoning</a></span><ul class=\"toc-item\"><li><span><a href=\"#1.-什么是推理(Reasoning)?\" data-toc-modified-id=\"1.-什么是推理(Reasoning)?-1.1\">1. 什么是推理(Reasoning)?</a></span></li><li><span><a href=\"#2.-导入ChatGPT\" data-toc-modified-id=\"2.-导入ChatGPT-1.2\">2. 导入ChatGPT</a></span></li><li><span><a href=\"#3.-测试ChatGPT的推理能力\" data-toc-modified-id=\"3.-测试ChatGPT的推理能力-1.3\">3. 测试ChatGPT的推理能力</a></span><ul class=\"toc-item\"><li><span><a href=\"#3.1-演绎推理(Deductive-Reasoning)\" data-toc-modified-id=\"3.1-演绎推理(Deductive-Reasoning)-1.3.1\">3.1 演绎推理(Deductive Reasoning)</a></span></li><li><span><a href=\"#3.2-归纳推理(Inductive-Reasoning)\" data-toc-modified-id=\"3.2-归纳推理(Inductive-Reasoning)-1.3.2\">3.2 归纳推理(Inductive Reasoning)</a></span></li><li><span><a href=\"#3.3-溯因推理(Abductive-reasoning)\" data-toc-modified-id=\"3.3-溯因推理(Abductive-reasoning)-1.3.3\">3.3 溯因推理(Abductive reasoning)</a></span></li><li><span><a href=\"#3.4-三者之间的关系\" data-toc-modified-id=\"3.4-三者之间的关系-1.3.4\">3.4 三者之间的关系</a></span></li></ul></li><li><span><a href=\"#4.-调用ChatPT的推理能力\" data-toc-modified-id=\"4.-调用ChatPT的推理能力-1.4\">4. 调用ChatPT的推理能力</a></span><ul class=\"toc-item\"><li><span><a href=\"#4.1-LLM推理求鼓励,请告诉ChatGPT去思考——Let's-think-step-by-step(Zero-shot-COT)\" data-toc-modified-id=\"4.1-LLM推理求鼓励,请告诉ChatGPT去思考——Let's-think-step-by-step(Zero-shot-COT)-1.4.1\">4.1 LLM推理求鼓励,请告诉ChatGPT去思考——Let's think step by step(Zero-shot-COT)</a></span></li><li><span><a href=\"#4.2-给几个例子,告诉ChatGPT应该这么思考——Chain-of-Thought-Prompting\" data-toc-modified-id=\"4.2-给几个例子,告诉ChatGPT应该这么思考——Chain-of-Thought-Prompting-1.4.2\">4.2 给几个例子,告诉ChatGPT应该这么思考——Chain of Thought Prompting</a></span></li><li><span><a href=\"#4.3-任务太难,拆分一下,找个简单的去突破——Least-to-Most-prompting\" data-toc-modified-id=\"4.3-任务太难,拆分一下,找个简单的去突破——Least-to-Most-prompting-1.4.3\">4.3 任务太难,拆分一下,找个简单的去突破——Least to Most prompting</a></span></li><li><span><a href=\"#4.4-并非所有问题都需要拆解,不如先问问LLM(比如:ChatGPT)的意见——Self-Ask\" data-toc-modified-id=\"4.4-并非所有问题都需要拆解,不如先问问LLM(比如:ChatGPT)的意见——Self-Ask-1.4.4\">4.4 并非所有问题都需要拆解,不如先问问LLM(比如:ChatGPT)的意见——Self-Ask</a></span></li><li><span><a href=\"#4.5-集思广益——Self-Consistency\" data-toc-modified-id=\"4.5-集思广益——Self-Consistency-1.4.5\">4.5 集思广益——Self Consistency</a></span></li></ul></li><li><span><a href=\"#5.-ChatGPT以及GPT-4的推理能力\" data-toc-modified-id=\"5.-ChatGPT以及GPT-4的推理能力-1.5\">5. ChatGPT以及GPT-4的推理能力</a></span></li><li><span><a href=\"#6.-本章总结\" data-toc-modified-id=\"6.-本章总结-1.6\">6. 本章总结</a></span></li><li><span><a href=\"#相关文献\" data-toc-modified-id=\"相关文献-1.7\">相关文献</a></span></li></ul></li></ul></div>"
11+
]
12+
},
313
{
414
"cell_type": "markdown",
515
"metadata": {},
@@ -1905,7 +1915,7 @@
19051915
],
19061916
"metadata": {
19071917
"kernelspec": {
1908-
"display_name": "Python 3 (ipykernel)",
1918+
"display_name": "Python 3",
19091919
"language": "python",
19101920
"name": "python3"
19111921
},
@@ -1919,7 +1929,7 @@
19191929
"name": "python",
19201930
"nbconvert_exporter": "python",
19211931
"pygments_lexer": "ipython3",
1922-
"version": "3.7.9"
1932+
"version": "3.8.13"
19231933
},
19241934
"latex_envs": {
19251935
"LaTeX_envs_menu_present": true,
@@ -1947,7 +1957,7 @@
19471957
"skip_h1_title": false,
19481958
"title_cell": "Table of Contents",
19491959
"title_sidebar": "Contents",
1950-
"toc_cell": false,
1960+
"toc_cell": true,
19511961
"toc_position": {
19521962
"height": "calc(100% - 180px)",
19531963
"left": "10px",
@@ -1960,4 +1970,4 @@
19601970
},
19611971
"nbformat": 4,
19621972
"nbformat_minor": 2
1963-
}
1973+
}

content/ChatGPT使用指南——文本生成.ipynb

+49-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "4013b22e",
6+
"metadata": {
7+
"toc": true
8+
},
9+
"source": [
10+
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
11+
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#ChatGPT使用指南——文本生成\" data-toc-modified-id=\"ChatGPT使用指南——文本生成-1\">ChatGPT使用指南——文本生成</a></span><ul class=\"toc-item\"><li><span><a href=\"#1-引言\" data-toc-modified-id=\"1-引言-1.1\">1 引言</a></span></li><li><span><a href=\"#2-文本摘要任务\" data-toc-modified-id=\"2-文本摘要任务-1.2\">2 文本摘要任务</a></span><ul class=\"toc-item\"><li><span><a href=\"#2.1-什么是文本摘要?\" data-toc-modified-id=\"2.1-什么是文本摘要?-1.2.1\">2.1 什么是文本摘要?</a></span></li><li><span><a href=\"#2.2-常见的文本摘要技术\" data-toc-modified-id=\"2.2-常见的文本摘要技术-1.2.2\">2.2 常见的文本摘要技术</a></span></li><li><span><a href=\"#2.3-基于OpenAI接口的文本摘要实验\" data-toc-modified-id=\"2.3-基于OpenAI接口的文本摘要实验-1.2.3\">2.3 基于OpenAI接口的文本摘要实验</a></span><ul class=\"toc-item\"><li><span><a href=\"#2.3.1-简单上手版:调用预训练模型\" data-toc-modified-id=\"2.3.1-简单上手版:调用预训练模型-1.2.3.1\">2.3.1 简单上手版:调用预训练模型</a></span></li><li><span><a href=\"#2.3.2-进阶优化版:基于自定义语料fine-tune\" data-toc-modified-id=\"2.3.2-进阶优化版:基于自定义语料fine-tune-1.2.3.2\">2.3.2 进阶优化版:基于自定义语料fine tune</a></span></li></ul></li></ul></li><li><span><a href=\"#3-文本纠错任务\" data-toc-modified-id=\"3-文本纠错任务-1.3\">3 文本纠错任务</a></span><ul class=\"toc-item\"><li><span><a href=\"#3.1-什么是文本纠错?\" data-toc-modified-id=\"3.1-什么是文本纠错?-1.3.1\">3.1 什么是文本纠错?</a></span></li><li><span><a href=\"#3.2-常见的文本纠错技术\" data-toc-modified-id=\"3.2-常见的文本纠错技术-1.3.2\">3.2 常见的文本纠错技术</a></span><ul class=\"toc-item\"><li><span><a href=\"#3.2.1-基于规则的文本纠错技术\" data-toc-modified-id=\"3.2.1-基于规则的文本纠错技术-1.3.2.1\">3.2.1 基于规则的文本纠错技术</a></span></li><li><span><a href=\"#3.2.2-基于语言模型的文本纠错技术\" data-toc-modified-id=\"3.2.2-基于语言模型的文本纠错技术-1.3.2.2\">3.2.2 基于语言模型的文本纠错技术</a></span></li><li><span><a href=\"#3.2.3-基于MLM的文本纠错技术\" data-toc-modified-id=\"3.2.3-基于MLM的文本纠错技术-1.3.2.3\">3.2.3 基于MLM的文本纠错技术</a></span></li><li><span><a href=\"#3.2.4-基于NLG的文本纠错技术\" data-toc-modified-id=\"3.2.4-基于NLG的文本纠错技术-1.3.2.4\">3.2.4 基于NLG的文本纠错技术</a></span></li><li><span><a href=\"#3.2.5-一个文本纠错工具集:pycorrector\" data-toc-modified-id=\"3.2.5-一个文本纠错工具集:pycorrector-1.3.2.5\">3.2.5 一个文本纠错工具集:pycorrector</a></span></li></ul></li></ul></li><li><span><a href=\"#3.3-基于OpenAI接口的文本纠错实验\" data-toc-modified-id=\"3.3-基于OpenAI接口的文本纠错实验-1.4\">3.3 基于OpenAI接口的文本纠错实验</a></span></li><li><span><a href=\"#4-机器翻译\" data-toc-modified-id=\"4-机器翻译-1.5\">4 机器翻译</a></span><ul class=\"toc-item\"><li><span><a href=\"#4.1-什么是机器翻译?\" data-toc-modified-id=\"4.1-什么是机器翻译?-1.5.1\">4.1 什么是机器翻译?</a></span></li><li><span><a href=\"#4.2-常见的机器翻译技术\" data-toc-modified-id=\"4.2-常见的机器翻译技术-1.5.2\">4.2 常见的机器翻译技术</a></span></li><li><span><a href=\"#4.3-基于OpenAI接口的机器翻译实验\" data-toc-modified-id=\"4.3-基于OpenAI接口的机器翻译实验-1.5.3\">4.3 基于OpenAI接口的机器翻译实验</a></span><ul class=\"toc-item\"><li><span><a href=\"#4.3.1-简单上手版:短文本英翻中\" data-toc-modified-id=\"4.3.1-简单上手版:短文本英翻中-1.5.3.1\">4.3.1 简单上手版:短文本英翻中</a></span></li><li><span><a href=\"#4.3.2-进阶深度版:长书籍英翻中\" data-toc-modified-id=\"4.3.2-进阶深度版:长书籍英翻中-1.5.3.2\">4.3.2 进阶深度版:长书籍英翻中</a></span></li></ul></li></ul></li><li><span><a href=\"#相关文献\" data-toc-modified-id=\"相关文献-1.6\">相关文献</a></span></li></ul></li></ul></div>"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"id": "e29809a4",
@@ -1570,7 +1581,7 @@
15701581
],
15711582
"metadata": {
15721583
"kernelspec": {
1573-
"display_name": "Python 3 (ipykernel)",
1584+
"display_name": "Python 3",
15741585
"language": "python",
15751586
"name": "python3"
15761587
},
@@ -1584,7 +1595,43 @@
15841595
"name": "python",
15851596
"nbconvert_exporter": "python",
15861597
"pygments_lexer": "ipython3",
1587-
"version": "3.9.13"
1598+
"version": "3.8.13"
1599+
},
1600+
"latex_envs": {
1601+
"LaTeX_envs_menu_present": true,
1602+
"autoclose": false,
1603+
"autocomplete": true,
1604+
"bibliofile": "biblio.bib",
1605+
"cite_by": "apalike",
1606+
"current_citInitial": 1,
1607+
"eqLabelWithNumbers": true,
1608+
"eqNumInitial": 1,
1609+
"hotkeys": {
1610+
"equation": "Ctrl-E",
1611+
"itemize": "Ctrl-I"
1612+
},
1613+
"labels_anchors": false,
1614+
"latex_user_defs": false,
1615+
"report_style_numbering": false,
1616+
"user_envs_cfg": false
1617+
},
1618+
"toc": {
1619+
"base_numbering": 1,
1620+
"nav_menu": {},
1621+
"number_sections": false,
1622+
"sideBar": true,
1623+
"skip_h1_title": false,
1624+
"title_cell": "Table of Contents",
1625+
"title_sidebar": "Contents",
1626+
"toc_cell": true,
1627+
"toc_position": {
1628+
"height": "calc(100% - 180px)",
1629+
"left": "10px",
1630+
"top": "150px",
1631+
"width": "288px"
1632+
},
1633+
"toc_section_display": true,
1634+
"toc_window_display": true
15881635
}
15891636
},
15901637
"nbformat": 4,

content/ChatGPT使用指南——相似匹配.ipynb

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "a4980428",
6+
"metadata": {
7+
"toc": true
8+
},
9+
"source": [
10+
"<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
11+
"<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#ChatGPT使用指南——相似匹配\" data-toc-modified-id=\"ChatGPT使用指南——相似匹配-1\">ChatGPT使用指南——相似匹配</a></span><ul class=\"toc-item\"><li><span><a href=\"#1.-何为Embedding\" data-toc-modified-id=\"1.-何为Embedding-1.1\">1. 何为Embedding</a></span></li><li><span><a href=\"#2.-相关API\" data-toc-modified-id=\"2.-相关API-1.2\">2. 相关API</a></span><ul class=\"toc-item\"><li><span><a href=\"#2.1-LMAS-Embedding-API\" data-toc-modified-id=\"2.1-LMAS-Embedding-API-1.2.1\">2.1 LMAS Embedding API</a></span></li><li><span><a href=\"#2.2-ChatGPT-Style\" data-toc-modified-id=\"2.2-ChatGPT-Style-1.2.2\">2.2 ChatGPT Style</a></span></li></ul></li><li><span><a href=\"#3.-Embedding应用\" data-toc-modified-id=\"3.-Embedding应用-1.3\">3. Embedding应用</a></span><ul class=\"toc-item\"><li><span><a href=\"#3.1-QA\" data-toc-modified-id=\"3.1-QA-1.3.1\">3.1 QA</a></span></li><li><span><a href=\"#3.2-聚类\" data-toc-modified-id=\"3.2-聚类-1.3.2\">3.2 聚类</a></span></li><li><span><a href=\"#3.3-推荐\" data-toc-modified-id=\"3.3-推荐-1.3.3\">3.3 推荐</a></span></li></ul></li><li><span><a href=\"#相关文献\" data-toc-modified-id=\"相关文献-1.4\">相关文献</a></span></li></ul></li></ul></div>"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"id": "2ca90e2d",
@@ -2604,7 +2615,7 @@
26042615
"skip_h1_title": false,
26052616
"title_cell": "Table of Contents",
26062617
"title_sidebar": "Contents",
2607-
"toc_cell": false,
2618+
"toc_cell": true,
26082619
"toc_position": {
26092620
"height": "calc(100% - 180px)",
26102621
"left": "10px",

resources/PreStart.pptx

2.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)