Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李进峰
jiaoyou_doc
Commits
30fc7cba
Commit
30fc7cba
authored
Nov 18, 2023
by
huangganda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023自动bot生成文档
parent
1279e6d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
2023自动bot生成.md
gameditor/2023自动bot生成.md
+72
-0
No files found.
gameditor/2023自动bot生成.md
0 → 100644
View file @
30fc7cba
## 1.自动生成分支
## 1.自动生成分支
**创作平台接口**
**METHOD**
: POST
**path**
: http://localhost:18092/api/bot/data/auto/train
RequestHeaders:
| key | description |
| ------------ | ------------------------------ |
| Content-Type | application/json;charset=utf-8 |
### 请求param字段说明
| key | type | required | description |
| --------- | --------- | -------- |-------------|
| secret | String | yes | 接口密钥 |
### 请求body字段说明
| key | type | required | description |
|------------------|---------|----------|------------------|
| projectId | Integer | yes | 作品编号(创作平台登陆后作品列表中查看) |
| dataPercent | Float | yes | 参与训练数据的比例, 填1 |
| fuzzyBotAccount | String | no | 模糊匹配bot的ID,可以为空 |
| allBotAccount | String | no | 全匹配bot的ID, 可以为空 |
| wordPosList | List | yes | 词性数据列表 |
| wordPosList.word | String | yes | 词 |
| wordPosList.pos | String | yes | 词性 |
### 请求示例
```
json
curl
--location
--request
POST
'http
:
//localhost
:
18092
/api/bot/data/auto/train?secret=qiwu
888
'
\
--header
'Content-Type
:
application/json'
\
--data-raw
'
{
"projectId"
:
47
,
"dataPercent"
:
1
,
"fuzzyBotAccount"
:
""
,
"allBotAccount"
:
""
,
"wordPosList"
:[]
}
'
```
### 响应字段说明
| key | type | description |
| ---- | ------ | -------------------- |
| code | int | 只要不出错,固定1 |
| msg | string | 只要不出错,固定成功 |
| data | | null |
### 响应实例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
null
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment