From 4cd077c2d37bba66809de26d9d1fe0a9b02adccb Mon Sep 17 00:00:00 2001 From: Danny Date: Tue, 28 Jul 2020 11:34:03 +1000 Subject: [PATCH] Add detect syntax functions --- src/Comprehend.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Comprehend.php b/src/Comprehend.php index 1eb4952..2e21cdf 100644 --- a/src/Comprehend.php +++ b/src/Comprehend.php @@ -61,6 +61,17 @@ public function batchDetectSentiment(array $params = []) return $this->client->batchDetectSentiment($params); } + /** + * Inspects a batch of documents and returns the syntax for each one. + * + * @param array $params + * @return array + */ + public function batchDetectSyntax(array $params = []) + { + return $this->client->batchDetectSyntax($params); + } + /** * Inspects the text of a batch of documents for named entities and returns information about them. * @@ -105,6 +116,17 @@ public function detectSentiment(array $params = []) return $this->client->detectSentiment($params); } + /** + * Inspects text and returns the syntax. + * + * @param array $params + * @return array + */ + public function detectSyntax(array $params = []) + { + return $this->client->detectSyntax($params); + } + /** * Detects the key noun phrases found in the text. *