## 1.自动生成分支 **创作平台接口** **Controller**: BotDataController->autoTrain **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=qiwu888' \ --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} ```