向 AWS Comprehend 请求添加标签
add a Tag to AWS Comprehend request
我们正在使用 python boto3 来检测文本之外的实体。是否可以向 API 调用添加诸如“product”:“x”之类的标签?
comprehend = boto3.client(service_name='comprehend', region_name='us-east-1')
response = comprehend.detect_entities(Text=text, LanguageCode='en')
根据文档DetectEntities
请求中仅支持以下属性
{
"EndpointArn": "string",
"LanguageCode": "string",
"Text": "string"
}
今天,Comprehend 仅支持自定义模型和端点等持久性资源的标签。 Comprehend 推理作业不是持久的,因此不支持标签。我们会考虑反馈。
我们正在使用 python boto3 来检测文本之外的实体。是否可以向 API 调用添加诸如“product”:“x”之类的标签?
comprehend = boto3.client(service_name='comprehend', region_name='us-east-1')
response = comprehend.detect_entities(Text=text, LanguageCode='en')
根据文档DetectEntities
请求中仅支持以下属性
{
"EndpointArn": "string",
"LanguageCode": "string",
"Text": "string"
}
今天,Comprehend 仅支持自定义模型和端点等持久性资源的标签。 Comprehend 推理作业不是持久的,因此不支持标签。我们会考虑反馈。