Break paragraph
- Print
- PDF
Break paragraph
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Identify paragraphs in a post by topic by identifying similarities between sentences.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /v1/api-tools/segmentation |
Request headers
The following describes the request headers.
Field | Required | Description |
---|---|---|
Authorization | Required | API key for authentication <e.g.,> Bearer nv-************ |
X-NCP-CLOVASTUDIO-REQUEST-ID | Optional | Request ID |
Content-Type | Required | Request data format
|
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
text | Array | Required | Document you want to paragraph break
|
alpha | Float | Optional | Thresholds value for paragraph breaks
|
segCnt | Integer | Optional | Number of paragraph breaks
|
postProcess | Boolean | Optional | Whether to perform post-processing after paragraph breaks to merge or split paragraphs to the desired length
|
postProcessMaxSize | Integer | Optional | Maximum number of characters in a paragraph after postProcess post-processing
|
postProcessMinSize | Integer | Optional | Minimum number of characters in a paragraph after postProcess post-processing
|
Request example
The request example is as follows:
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
topicSeg | Array | - | Paragraph break results |
span | Array | - | Indexes in paragraphed text
|
inputTokens | Integer | - | Token for the paragraph break target document |
Response example
The response example is as follows:
Succeeded
The following is a sample response upon a successful call.
Failure
The following is a sample response upon a failed call.
Was this article helpful?