Tests the analysis effect based on specific intervention dictionaries.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/analyze HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
text String Query Yes abcde

The text to be tested.

tokenizer String Query Yes chn_standard

The analyzer that you want to use.

dict String Query No segment:584

The intervention dictionaries.

Specify an intervention dictionary in the format of type:id. Replace id with the ID of the intervention dictionary. Separate multiple intervention dictionaries with commas (,). Example: dict=segment:584,segment:585.

Response parameters

Parameter Type Example Description
requestId String D77D0DAF-790D-F5F5-A9C0-133738165014

The ID of the request.

result Map {}


Sample requests

GET v4/openapi/analyze?dict=segment:584,segment:585&text=abcde&tokenizer=chn_standard

Sample success responses

XML format

    <retrieve>ab cde edcba</retrieve>

JSON format

    "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
    "result": {
        "retrieve": "ab cde edcba"

Error codes

For a list of error codes, visit the API Error Center.