Deletes an intervention dictionary.

Debugging

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

DELETE /v4/openapi/intervention-dictionaries/[name] HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
name String Path No "my_dict"

The name of the intervention dictionary.

Response parameters

Parameter Type Example Description
requestId String 06BBD41A-5F72-34E4-2DAF-E43B0526051D

The ID of the request.

result Struct

The information about the intervention dictionary.

analyzer String ""

The custom analyzer.

created String 1539158313

The time when the intervention dictionary was created.

name String tongyici

The name of the intervention dictionary.

type String synonym

The type of the intervention dictionary. Valid values:

  • stopword: an intervention dictionary for stop word filtering
  • synonym: an intervention dictionary for synonym configuration
  • correction: an intervention dictionary for spelling correction
  • category_prediction: an intervention dictionary for category prediction
  • ner: an intervention dictionary for named entity recognition (NER)
  • term_weighting: an intervention dictionary for term weight analysis
updated String 1539158313

The time when the intervention dictionary was last updated.

Examples

Sample requests

DELETE /v4/openapi/intervention-dictionaries/testb

Sample success responses

XML format

<requestId>06BBD41A-5F72-34E4-2DAF-E43B0526051D</requestId>
<result>
    <id>123</id>
    <name>testb</name>
    <type>ner</type>
    <analyzer>abc</analyzer>
    <created>1587957529</created>
    <updated>1587957529</updated>
</result>

JSON format

{
    "requestId": "06BBD41A-5F72-34E4-2DAF-E43B0526051D",
    "result": {
        "id": 123,
        "name": "testb",
        "type": "ner",
        "analyzer": "abc",
        "created": 1587957529,
        "updated": 1587957529
    }
}

Error codes

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