Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hanlpbot committed Jul 27, 2023
1 parent be2f049 commit fd46a5c
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pip install hanlp_restful

```python
from hanlp_restful import HanLPClient
HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种
HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种
```

#### Golang
Expand All @@ -105,7 +105,7 @@ HanLP := hanlp.HanLPClient(hanlp.WithAuth(""),hanlp.WithLanguage("zh")) // auth
创建客户端,填入服务器地址和秘钥:

```java
HanLPClient HanLP = new HanLPClient("https://www.hanlp.com/api", null, "zh"); // auth不填则匿名,zh中文,mul多语种
HanLPClient HanLP = new HanLPClient("https://hanlp.hankcs.com/api", null, "zh"); // auth不填则匿名,zh中文,mul多语种
```

#### 快速上手
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/amr_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/con_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/cor_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/dep_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/gec_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/keyphrase_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/lid_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/ner_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/pos_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/sdp_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/sentiment_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/srl_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/sts_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/tok_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/tst_restful.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/hanlp_demo/hanlp_demo/zh/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"outputs": [],
"source": [
"from hanlp_restful import HanLPClient\n",
"HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
"HanLP = HanLPClient('https://hanlp.hankcs.com/api', auth=None, language='zh') # auth不填则匿名,zh中文,mul多语种"
]
},
{
Expand Down

0 comments on commit fd46a5c

Please sign in to comment.