Queries the intervention entries in an intervention dictionary.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:DescribeInterventionDictionary |
*InterventionDictionary
|
None | None |
Request syntax
GET /v4/openapi/intervention-dictionaries/{name}/entries HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the intervention dictionary. |
my_dict |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| word |
string |
No |
The intervention entry. |
test |
| pageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries returned per page. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| totalCount |
integer |
The total number of entries returned. |
8 |
| requestId |
string |
The request ID. |
516A02B7-2167-8D92-12D0-B639A2A0F3C5 |
| result |
array<object> |
The information about intervention entries. For more information, see InterventionDictionaryEntry. |
|
|
array<object> |
|||
| cmd |
string |
The command. Valid values:
|
add |
| created |
integer |
The timestamp when the intervention entry was created. |
1536690285 |
| word |
string |
The intervention entry. |
\u8fc7\u513f |
| relevance |
object |
The content of an intervention entry for category prediction. The field value consists of key-value pairs. The key in a key-value pair indicates the ID of the category. The value in a key-value pair indicates the relevance to the category. A value of 0 indicates irrelevant. A value of 1 indicates slightly relevant. A value of 2 indicates relevant. Example: {"2":1, "100":0} |
{ "100": "0", "200": "2" } |
| status |
string |
The status of the intervention entry. Valid value:
|
ACTIVE |
| updated |
integer |
The timestamp when the intervention entry was last updated. |
1537348987 |
| tokens |
array<object> |
The content of the intervention entry for term weight analysis. |
|
|
object |
|||
| tag |
string |
The internal name of the identified entity type. Valid values:
|
category |
| token |
string |
The entity. |
this |
| order |
integer |
The sequence number. |
1 |
| tagLabel |
string |
The description of the internal name of the identified entity type. |
category |
Examples
Success response
JSON format
{
"totalCount": 8,
"requestId": "516A02B7-2167-8D92-12D0-B639A2A0F3C5",
"result": [
{
"cmd": "add",
"created": 1536690285,
"word": "\\u8fc7\\u513f",
"relevance": {
"100": "0",
"200": "2"
},
"status": "ACTIVE",
"updated": 1537348987,
"tokens": [
{
"tag": "category",
"token": "this",
"order": 1,
"tagLabel": "category"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.