注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Text Segmentation API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
About the API:
The challenge of breaking down a string of written language into its individual phrases is known as sentence segmentation. Using punctuation, especially the full stop/period letter is a suitable approximation in English and certain other languages. Due to the usage of the full stop character for abbreviations, which may or may not also end a phrase, this issue is not simple even in English.
Pass any paragraph to this API in a JSON object, and receive an array with all the sentences recognized in the text.
This API will help you to retrieve sentences in a given text. Maybe, sometimes you don't need all the text or want to extract different sentences from an article, this API will help you.
Besides API call limitations per month, there are no other limitations.
The Segmentation endpoint returns an array of sentences extracted from the provided text. Each sentence is identified based on punctuation and sentence structure.
The primary field in the response data is an array called "sentences," which contains the segmented sentences as individual string elements.
The response data is structured as a JSON object containing a single key, "sentences," which maps to an array of strings, each representing a distinct sentence from the input text.
The Segmentation endpoint accepts a single parameter: the input text, which should be provided as a string within a JSON object.
Users can customize their requests by varying the input text they provide. Different paragraphs will yield different arrays of segmented sentences based on their content.
Typical use cases include extracting sentences for summarization, analyzing sentence structure, or isolating quotes from larger texts for further processing.
If the input text is empty or does not contain recognizable sentences, the API will return an empty array. Users should check for this condition to handle such cases gracefully.
The API employs algorithms that utilize punctuation and linguistic rules to ensure accurate sentence segmentation. Continuous updates and testing help maintain data quality.