MyanLex
API referenceTokenization

Tokenize mixed Myanmar text

Returns lexical/script units and does not claim dictionary word segmentation.

POST/tokenize

Returns lexical/script units and does not claim dictionary word segmentation.

Authorization

bearerApiKey
AuthorizationBearer <token>

A MyanLex API key supplied as a bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/tokenize" \  -H "Content-Type: application/json" \  -d '{    "text": "string"  }'
{  "input": "string",  "profile": "myanmar-script-tokens-v1",  "tokens": [    {      "kind": "burmese_syllable",      "text": "string",      "script": "myanmar",      "start": 0,      "end": 0    }  ],  "scripts": [    "myanmar"  ],  "mixedScript": true}