Sentences
https://analytics.babelstreet.com/rest/v1/sentences
https://raw.githubusercontent.com/rosette-api/curl-examples/develop/examples/sentences.curl
The Sentence endpoint parses your input and return a list of sentences.
It can identify the start and end of each sentence, even though punctuation may be ambiguous.
Query Parameters
Name | Value | Description |
---|---|---|
output | rosette | Returns the response in ADM format. |
Note
All input parameters, including the text being analyzed and any relevant options, are defined in the request body.
Request
Response
{ "sentences": [ "string" ] }
Supported languages
GET /sentences/supported-languages
Returns the list of supported languages and scripts for the endpoint, along with whether you have a license for the language.
Response
Field | Type | Description |
---|---|---|
| string | ISO 639 language code |
| string | Four-letter ISO-15924 script code |
| boolean | Indicates if you are licensed for this language |
{ "supportedLanguages": [ { "language": "string", "script": "string", "licensed": boolean } ] }