Domain name for API request: es.intl.tencentcloudapi.com.
Text segmentation is a technology that splits long text into short clips for adapting to model input, improving processing efficiency, or information retrieval. It balances clip length and semantic consistency, suitable for NLP and data analysis scenarios.
This API is an async API with a model dimensional call limit. Each model has a qps limit of 5. If you need to increase the concurrent limit, please contact us (https://www.tencentcloud.com/act/event/Online_service?from_cn_redirect=1).
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ChunkDocumentAsync. |
| Version | Yes | String | Common Params. The value used for this API: 2025-01-01. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Document | Yes | Document | File information. |
| ModelName | Yes | String | Model name, selectable model list: doc-tree-chunk. |
| Config | No | ChunkConfigAsync | File slice configuration. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: es.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ChunkDocumentAsync
<Common request parameters>
{
"Document": {
"FileType": "TXT",
"FileUrl": "",
"FileContent": "data:text/plain;base64,SGVsbG8sIFdvcmxkIQ==",
"FileName": "test.txt",
"FileStartPageNumber": 1,
"FileEndPageNumber": 1
},
"Config": {
"MaxChunkSize": 10000
},
"ModelName": "doc-tree-chunk"
}
{
"Response": {
"RequestId": "e3a1a515-e53c-473f-9114-6d05a19d1c0c",
"TaskId": "acf20b7e-47b2-4cfd-8aba-d170dee34cfc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| LimitExceeded | The quota limit is exceeded. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários