Skip to content

Commit

Permalink
Updated API models and rebuilt service gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Ruby authored and Nobody committed Sep 21, 2022
1 parent c0a28ec commit aaefb3f
Show file tree
Hide file tree
Showing 35 changed files with 1,788 additions and 324 deletions.
143 changes: 143 additions & 0 deletions apis/comprehend/2017-11-27/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@
{"shape":"InternalServerException"}
]
},
"BatchDetectTargetedSentiment":{
"name":"BatchDetectTargetedSentiment",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"BatchDetectTargetedSentimentRequest"},
"output":{"shape":"BatchDetectTargetedSentimentResponse"},
"errors":[
{"shape":"InvalidRequestException"},
{"shape":"TextSizeLimitExceededException"},
{"shape":"UnsupportedLanguageException"},
{"shape":"BatchSizeLimitExceededException"},
{"shape":"InternalServerException"}
]
},
"ClassifyDocument":{
"name":"ClassifyDocument",
"http":{
Expand Down Expand Up @@ -527,6 +543,21 @@
{"shape":"InternalServerException"}
]
},
"DetectTargetedSentiment":{
"name":"DetectTargetedSentiment",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"DetectTargetedSentimentRequest"},
"output":{"shape":"DetectTargetedSentimentResponse"},
"errors":[
{"shape":"InvalidRequestException"},
{"shape":"TextSizeLimitExceededException"},
{"shape":"UnsupportedLanguageException"},
{"shape":"InternalServerException"}
]
},
"ImportModel":{
"name":"ImportModel",
"http":{
Expand Down Expand Up @@ -1290,6 +1321,36 @@
},
"sensitive":true
},
"BatchDetectTargetedSentimentItemResult":{
"type":"structure",
"members":{
"Index":{"shape":"Integer"},
"Entities":{"shape":"ListOfTargetedSentimentEntities"}
}
},
"BatchDetectTargetedSentimentRequest":{
"type":"structure",
"required":[
"TextList",
"LanguageCode"
],
"members":{
"TextList":{"shape":"CustomerInputStringList"},
"LanguageCode":{"shape":"LanguageCode"}
}
},
"BatchDetectTargetedSentimentResponse":{
"type":"structure",
"required":[
"ResultList",
"ErrorList"
],
"members":{
"ResultList":{"shape":"ListOfDetectTargetedSentimentResult"},
"ErrorList":{"shape":"BatchItemErrorList"}
},
"sensitive":true
},
"BatchItemError":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -1829,6 +1890,24 @@
},
"sensitive":true
},
"DetectTargetedSentimentRequest":{
"type":"structure",
"required":[
"Text",
"LanguageCode"
],
"members":{
"Text":{"shape":"CustomerInputString"},
"LanguageCode":{"shape":"LanguageCode"}
}
},
"DetectTargetedSentimentResponse":{
"type":"structure",
"members":{
"Entities":{"shape":"ListOfTargetedSentimentEntities"}
},
"sensitive":true
},
"DocumentClass":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -2659,6 +2738,10 @@
"type":"list",
"member":{"shape":"DocumentClass"}
},
"ListOfDescriptiveMentionIndices":{
"type":"list",
"member":{"shape":"Integer"}
},
"ListOfDetectDominantLanguageResult":{
"type":"list",
"member":{"shape":"BatchDetectDominantLanguageItemResult"}
Expand All @@ -2679,6 +2762,10 @@
"type":"list",
"member":{"shape":"BatchDetectSyntaxItemResult"}
},
"ListOfDetectTargetedSentimentResult":{
"type":"list",
"member":{"shape":"BatchDetectTargetedSentimentItemResult"}
},
"ListOfDocumentReadFeatureTypes":{
"type":"list",
"member":{"shape":"DocumentReadFeatureTypes"},
Expand All @@ -2705,6 +2792,10 @@
"type":"list",
"member":{"shape":"DocumentLabel"}
},
"ListOfMentions":{
"type":"list",
"member":{"shape":"TargetedSentimentMention"}
},
"ListOfPiiEntities":{
"type":"list",
"member":{"shape":"PiiEntity"}
Expand All @@ -2717,6 +2808,10 @@
"type":"list",
"member":{"shape":"SyntaxToken"}
},
"ListOfTargetedSentimentEntities":{
"type":"list",
"member":{"shape":"TargetedSentimentEntity"}
},
"ListPiiEntitiesDetectionJobsRequest":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -2802,6 +2897,13 @@
"max":500,
"min":1
},
"MentionSentiment":{
"type":"structure",
"members":{
"Sentiment":{"shape":"SentimentType"},
"SentimentScore":{"shape":"SentimentScore"}
}
},
"ModelStatus":{
"type":"string",
"enum":[
Expand Down Expand Up @@ -3614,6 +3716,47 @@
"type":"list",
"member":{"shape":"TargetedSentimentDetectionJobProperties"}
},
"TargetedSentimentEntity":{
"type":"structure",
"members":{
"DescriptiveMentionIndex":{"shape":"ListOfDescriptiveMentionIndices"},
"Mentions":{"shape":"ListOfMentions"}
}
},
"TargetedSentimentEntityType":{
"type":"string",
"enum":[
"PERSON",
"LOCATION",
"ORGANIZATION",
"FACILITY",
"BRAND",
"COMMERCIAL_ITEM",
"MOVIE",
"MUSIC",
"BOOK",
"SOFTWARE",
"GAME",
"PERSONAL_TITLE",
"EVENT",
"DATE",
"QUANTITY",
"ATTRIBUTE",
"OTHER"
]
},
"TargetedSentimentMention":{
"type":"structure",
"members":{
"Score":{"shape":"Float"},
"GroupScore":{"shape":"Float"},
"Text":{"shape":"String"},
"Type":{"shape":"TargetedSentimentEntityType"},
"MentionSentiment":{"shape":"MentionSentiment"},
"BeginOffset":{"shape":"Integer"},
"EndOffset":{"shape":"Integer"}
}
},
"TextSizeLimitExceededException":{
"type":"structure",
"members":{
Expand Down
Loading

0 comments on commit aaefb3f

Please sign in to comment.