@@ -33,6 +33,24 @@
33 "https://www.googleapis.com/auth/cloud-platform"
33 "https://www.googleapis.com/auth/cloud-platform"
37+ "id": "language.documents.analyzeSyntax",
39+ "$ref": "AnalyzeSyntaxResponse"
41+ "parameterOrder": [],
42+ "description": "Analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.",
44+ "$ref": "AnalyzeSyntaxRequest"
46+ "flatPath": "v1beta1/documents:analyzeSyntax",
47+ "httpMethod": "POST",
49+ "path": "v1beta1/documents:analyzeSyntax",
51+ "https://www.googleapis.com/auth/cloud-platform"
36 "annotateText": {
54 "annotateText": {
37 "id": "language.documents.annotateText",
55 "id": "language.documents.annotateText",
38 "response": {
56 "response": {
@@ -78,11 +96,11 @@
78 "type": "object",
96 "type": "object",
79 "properties": {
97 "properties": {
80 "language": {
98 "language": {
81− "description": "The language of the document (if not specified, the language is\nautomatically detected). Both ISO and BCP-47 language codes are\naccepted.\u003cbr\u003e\n**Current Language Restrictions:**\n\n * Only English, Spanish, and Japanese textual content\n are supported, with the following additional restriction:\n * `analyzeSentiment` only supports English text.\nIf the language (either specified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
99+ "description": "The language of the document (if not specified, the language is\nautomatically detected). Both ISO and BCP-47 language codes are\naccepted.\u003cbr\u003e\n**Current Language Restrictions:**\n\n * Only English, Spanish, and Japanese textual content are supported.\nIf the language (either specified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
82 "type": "string"
100 "type": "string"
84 "gcsContentUri": {
102 "gcsContentUri": {
85− "description": "The Google Cloud Storage URI where the file content is located.",
103+ "description": "The Google Cloud Storage URI where the file content is located.\nThis URI must be of the form: gs://bucket_name/object_name. For more\ndetails, see https://cloud.google.com/storage/docs/reference-uris.\nNOTE: Cloud Storage object versioning is not supported.",
86 "type": "string"
104 "type": "string"
88 "type": {
106 "type": {
@@ -183,6 +201,20 @@
183 "text": {
201 "text": {
184 "description": "The mention text.",
202 "description": "The mention text.",
185 "$ref": "TextSpan"
203 "$ref": "TextSpan"
206+ "description": "The type of the entity mention.",
212+ "enumDescriptions": [
215+ "Common noun (or noun compound)"
188 "id": "EntityMention"
220 "id": "EntityMention"
@@ -194,6 +226,22 @@
194 "document": {
226 "document": {
195 "description": "Input document. Currently, `analyzeSentiment` only supports English text\n(Document.language=\"EN\").",
227 "description": "Input document. Currently, `analyzeSentiment` only supports English text\n(Document.language=\"EN\").",
196 "$ref": "Document"
228 "$ref": "Document"
231+ "description": "The encoding type used by the API to calculate sentence offsets for the\nsentence sentiment.",
238+ "enumDescriptions": [
239+ "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
240+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
241+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
242+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
199 "id": "AnalyzeSentimentRequest"
247 "id": "AnalyzeSentimentRequest"
@@ -209,10 +257,44 @@
209 "language": {
257 "language": {
210 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.",
258 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.",
211 "type": "string"
259 "type": "string"
262+ "description": "The sentiment for all the sentences in the document.",
214 "id": "AnalyzeSentimentResponse"
269 "id": "AnalyzeSentimentResponse"
271+ "AnalyzeSyntaxRequest": {
272+ "description": "The syntax analysis request message.",
276+ "description": "Input document.",
280+ "description": "The encoding type used by the API to calculate offsets.",
287+ "enumDescriptions": [
288+ "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
289+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
290+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
291+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
296+ "id": "AnalyzeSyntaxRequest"
216 "DependencyEdge": {
298 "DependencyEdge": {
217 "description": "Represents dependency parse tree information for a token.",
299 "description": "Represents dependency parse tree information for a token.",
218 "type": "object",
300 "type": "object",
@@ -387,6 +469,31 @@
388 "id": "DependencyEdge"
470 "id": "DependencyEdge"
472+ "AnalyzeSyntaxResponse": {
473+ "description": "The syntax analysis response message.",
477+ "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
481+ "description": "Tokens, along with their syntactic information, in the input document.",
488+ "description": "Sentences in the input document.",
495+ "id": "AnalyzeSyntaxResponse"
390 "AnnotateTextRequest": {
497 "AnnotateTextRequest": {
391 "description": "The request message for the text annotation API, which can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
498 "description": "The request message for the text annotation API, which can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
392 "type": "object",
499 "type": "object",
@@ -425,6 +532,10 @@
425 "text": {
532 "text": {
426 "description": "The sentence text.",
533 "description": "The sentence text.",
427 "$ref": "TextSpan"
534 "$ref": "TextSpan"
537+ "description": "For calls to AnalyzeSentiment or if\nAnnotateTextRequest.Features.extract_document_sentiment is set to\ntrue, this field will contain the sentiment for the sentence.",
430 "id": "Sentence"
541 "id": "Sentence"
@@ -452,6 +563,184 @@
452 "description": "Represents part of speech information for a token.",
563 "description": "Represents part of speech information for a token.",
453 "type": "object",
564 "type": "object",
454 "properties": {
565 "properties": {
567+ "description": "The grammatical aspect.",
574+ "enumDescriptions": [
575+ "Aspect is not applicable in the analyzed language or is not predicted.",
583+ "description": "The grammatical gender.",
590+ "enumDescriptions": [
591+ "Gender is not applicable in the analyzed language or is not predicted.",
599+ "description": "The grammatical person.",
607+ "enumDescriptions": [
608+ "Person is not applicable in the analyzed language or is not predicted.",
617+ "description": "The grammatical case.",
635+ "enumDescriptions": [
636+ "Case is not applicable in the analyzed language or is not predicted.",
655+ "description": "The grammatical form.",
670+ "enumDescriptions": [
671+ "Form is not applicable in the analyzed language or is not predicted.",
687+ "description": "The grammatical tense.",
690+ "CONDITIONAL_TENSE",
697+ "enumDescriptions": [
698+ "Tense is not applicable in the analyzed language or is not predicted.",
709+ "description": "The grammatical properness.",
715+ "enumDescriptions": [
716+ "Proper is not applicable in the analyzed language or is not predicted.",
723+ "description": "The grammatical mood.",
733+ "enumDescriptions": [
734+ "Mood is not applicable in the analyzed language or is not predicted.",
456 "description": "The part of speech tag.",
745 "description": "The part of speech tag.",
457 "enum": [
746 "enum": [
@@ -487,6 +776,52 @@
489 "type": "string"
778 "type": "string"
781+ "description": "The grammatical number.",
788+ "enumDescriptions": [
789+ "Number is not applicable in the analyzed language or is not predicted.",
797+ "description": "The grammatical reciprocity.",
799+ "RECIPROCITY_UNKNOWN",
803+ "enumDescriptions": [
804+ "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
811+ "description": "The grammatical voice.",
818+ "enumDescriptions": [
819+ "Voice is not applicable in the analyzed language or is not predicted.",
492 "id": "PartOfSpeech"
827 "id": "PartOfSpeech"
@@ -532,7 +867,7 @@
532 "type": "object",
867 "type": "object",
533 "properties": {
868 "properties": {
534 "metadata": {
869 "metadata": {
535− "description": "Metadata associated with the entity.\n\nCurrently, only Wikipedia URLs are provided, if available.\nThe associated key is \"wikipedia_url\".",
870+ "description": "Metadata associated with the entity.\n\nCurrently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The associated keys are \"wikipedia_url\" and \"mid\", respectively.",
536 "additionalProperties": {
871 "additionalProperties": {
537 "type": "string"
872 "type": "string"
@@ -585,13 +920,18 @@
585 "description": "Represents the feeling associated with the entire text or entities in\nthe text.",
920 "description": "Represents the feeling associated with the entire text or entities in\nthe text.",
586 "type": "object",
921 "type": "object",
587 "properties": {
922 "properties": {
924+ "description": "Sentiment score between -1.0 (negative sentiment) and 1.0\n(positive sentiment).",
588 "polarity": {
928 "polarity": {
589− "description": "Polarity of the sentiment in the [-1.0, 1.0] range. Larger numbers\nrepresent more positive sentiments.",
929+ "description": "DEPRECATED FIELD - This field is being deprecated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.google.com/natural-language/docs for more information.",
590 "type": "number",
930 "type": "number",
591 "format": "float"
931 "format": "float"
593 "magnitude": {
933 "magnitude": {
594− "description": "A non-negative number in the [0, +inf) range, which represents\nthe absolute magnitude of sentiment regardless of polarity (positive or\nnegative).",
934+ "description": "A non-negative number in the [0, +inf) range, which represents\nthe absolute magnitude of sentiment regardless of score (positive or\nnegative).",
595 "type": "number",
935 "type": "number",
596 "format": "float"
936 "format": "float"
@@ -615,7 +955,7 @@
615 "$ref": "DependencyEdge"
955 "$ref": "DependencyEdge"
617 "lemma": {
957 "lemma": {
618− "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_(morphology))\nof the token.",
958+ "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.",
619 "type": "string"
959 "type": "string"
@@ -640,14 +980,14 @@
640 "id": "AnalyzeEntitiesResponse"
980 "id": "AnalyzeEntitiesResponse"
643− "revision": "20160922",
983+ "revision": "20170103",
644 "basePath": "",
984 "basePath": "",
645 "icons": {
985 "icons": {
646 "x32": "http://www.google.com/images/icons/product/search-32.gif",
986 "x32": "http://www.google.com/images/icons/product/search-32.gif",
647 "x16": "http://www.google.com/images/icons/product/search-16.gif"
987 "x16": "http://www.google.com/images/icons/product/search-16.gif"
649 "version_module": "True",
989 "version_module": "True",
650− "canonicalName": "Cloud Natural Language API",
990+ "canonicalName": "Cloud Natural Language",
651 "discoveryVersion": "v1",
991 "discoveryVersion": "v1",
652 "baseUrl": "https://language.googleapis.com/",
992 "baseUrl": "https://language.googleapis.com/",
653 "name": "language",
993 "name": "language",