OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://language.googleapis.com/", | 12 "baseUrl": "https://language.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Cloud Natural Language", | 14 "canonicalName": "Cloud Natural Language", |
15 "description": "Provides natural language understanding technologies to deve
lopers. Examples include sentiment analysis, entity recognition, entity sentimen
t analysis, and text annotations.", | 15 "description": "Provides natural language understanding technologies to deve
lopers. Examples include sentiment analysis, entity recognition, entity sentimen
t analysis, and text annotations.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/natural-language/", | 17 "documentationLink": "https://cloud.google.com/natural-language/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "language:v1beta2", | 22 "id": "language:v1beta2", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "language", | 24 "name": "language", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
| 28 "upload_protocol": { |
| 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "prettyPrint": { |
| 34 "default": "true", |
| 35 "description": "Returns response with indentations and line breaks."
, |
| 36 "location": "query", |
| 37 "type": "boolean" |
| 38 }, |
28 "uploadType": { | 39 "uploadType": { |
29 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 40 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
30 "location": "query", | 41 "location": "query", |
31 "type": "string" | 42 "type": "string" |
32 }, | 43 }, |
33 "fields": { | 44 "fields": { |
34 "description": "Selector specifying which fields to include in a par
tial response.", | 45 "description": "Selector specifying which fields to include in a par
tial response.", |
35 "location": "query", | 46 "location": "query", |
36 "type": "string" | 47 "type": "string" |
37 }, | 48 }, |
| 49 "callback": { |
| 50 "description": "JSONP", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
38 "$.xgafv": { | 54 "$.xgafv": { |
39 "description": "V1 error format.", | 55 "description": "V1 error format.", |
40 "enum": [ | 56 "enum": [ |
41 "1", | 57 "1", |
42 "2" | 58 "2" |
43 ], | 59 ], |
44 "enumDescriptions": [ | 60 "enumDescriptions": [ |
45 "v1 error format", | 61 "v1 error format", |
46 "v2 error format" | 62 "v2 error format" |
47 ], | 63 ], |
48 "location": "query", | 64 "location": "query", |
49 "type": "string" | 65 "type": "string" |
50 }, | 66 }, |
51 "callback": { | |
52 "description": "JSONP", | |
53 "location": "query", | |
54 "type": "string" | |
55 }, | |
56 "alt": { | 67 "alt": { |
57 "default": "json", | 68 "default": "json", |
58 "description": "Data format for response.", | 69 "description": "Data format for response.", |
59 "enum": [ | 70 "enum": [ |
60 "json", | 71 "json", |
61 "media", | 72 "media", |
62 "proto" | 73 "proto" |
63 ], | 74 ], |
64 "enumDescriptions": [ | 75 "enumDescriptions": [ |
65 "Responses with Content-Type of application/json", | 76 "Responses with Content-Type of application/json", |
(...skipping 17 matching lines...) Expand all Loading... |
83 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 94 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
84 "location": "query", | 95 "location": "query", |
85 "type": "string" | 96 "type": "string" |
86 }, | 97 }, |
87 "pp": { | 98 "pp": { |
88 "default": "true", | 99 "default": "true", |
89 "description": "Pretty-print response.", | 100 "description": "Pretty-print response.", |
90 "location": "query", | 101 "location": "query", |
91 "type": "boolean" | 102 "type": "boolean" |
92 }, | 103 }, |
93 "oauth_token": { | |
94 "description": "OAuth 2.0 token for the current user.", | |
95 "location": "query", | |
96 "type": "string" | |
97 }, | |
98 "bearer_token": { | 104 "bearer_token": { |
99 "description": "OAuth bearer token.", | 105 "description": "OAuth bearer token.", |
100 "location": "query", | 106 "location": "query", |
101 "type": "string" | 107 "type": "string" |
102 }, | 108 }, |
103 "upload_protocol": { | 109 "oauth_token": { |
104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 110 "description": "OAuth 2.0 token for the current user.", |
105 "location": "query", | 111 "location": "query", |
106 "type": "string" | 112 "type": "string" |
107 }, | |
108 "prettyPrint": { | |
109 "default": "true", | |
110 "description": "Returns response with indentations and line breaks."
, | |
111 "location": "query", | |
112 "type": "boolean" | |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "documents": { | 117 "documents": { |
118 "methods": { | 118 "methods": { |
119 "analyzeSentiment": { | 119 "analyzeSentiment": { |
120 "description": "Analyzes the sentiment of the provided text.
", | 120 "description": "Analyzes the sentiment of the provided text.
", |
121 "httpMethod": "POST", | 121 "httpMethod": "POST", |
122 "id": "language.documents.analyzeSentiment", | 122 "id": "language.documents.analyzeSentiment", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 "response": { | 197 "response": { |
198 "$ref": "AnalyzeSyntaxResponse" | 198 "$ref": "AnalyzeSyntaxResponse" |
199 }, | 199 }, |
200 "scopes": [ | 200 "scopes": [ |
201 "https://www.googleapis.com/auth/cloud-platform" | 201 "https://www.googleapis.com/auth/cloud-platform" |
202 ] | 202 ] |
203 } | 203 } |
204 } | 204 } |
205 } | 205 } |
206 }, | 206 }, |
207 "revision": "20170515", | 207 "revision": "20170601", |
208 "rootUrl": "https://language.googleapis.com/", | 208 "rootUrl": "https://language.googleapis.com/", |
209 "schemas": { | 209 "schemas": { |
210 "AnalyzeSyntaxResponse": { | 210 "AnalyzeSentimentResponse": { |
211 "description": "The syntax analysis response message.", | 211 "description": "The sentiment analysis response message.", |
212 "id": "AnalyzeSyntaxResponse", | 212 "id": "AnalyzeSentimentResponse", |
| 213 "properties": { |
| 214 "documentSentiment": { |
| 215 "$ref": "Sentiment", |
| 216 "description": "The overall sentiment of the input document.
" |
| 217 }, |
| 218 "language": { |
| 219 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", |
| 220 "type": "string" |
| 221 }, |
| 222 "sentences": { |
| 223 "description": "The sentiment for all the sentences in the d
ocument.", |
| 224 "items": { |
| 225 "$ref": "Sentence" |
| 226 }, |
| 227 "type": "array" |
| 228 } |
| 229 }, |
| 230 "type": "object" |
| 231 }, |
| 232 "AnalyzeEntitiesResponse": { |
| 233 "description": "The entity analysis response message.", |
| 234 "id": "AnalyzeEntitiesResponse", |
213 "properties": { | 235 "properties": { |
214 "language": { | 236 "language": { |
215 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | 237 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", |
216 "type": "string" | 238 "type": "string" |
217 }, | 239 }, |
218 "sentences": { | 240 "entities": { |
219 "description": "Sentences in the input document.", | 241 "description": "The recognized entities in the input documen
t.", |
220 "items": { | 242 "items": { |
221 "$ref": "Sentence" | 243 "$ref": "Entity" |
222 }, | |
223 "type": "array" | |
224 }, | |
225 "tokens": { | |
226 "description": "Tokens, along with their syntactic informati
on, in the input document.", | |
227 "items": { | |
228 "$ref": "Token" | |
229 }, | 244 }, |
230 "type": "array" | 245 "type": "array" |
231 } | 246 } |
232 }, | 247 }, |
233 "type": "object" | 248 "type": "object" |
234 }, | 249 }, |
235 "Entity": { | 250 "Entity": { |
236 "description": "Represents a phrase in the text that is a known enti
ty, such as\na person, an organization, or location. The API associates informat
ion, such\nas salience and mentions, with entities.", | 251 "description": "Represents a phrase in the text that is a known enti
ty, such as\na person, an organization, or location. The API associates informat
ion, such\nas salience and mentions, with entities.", |
237 "id": "Entity", | 252 "id": "Entity", |
238 "properties": { | 253 "properties": { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 "mentions": { | 298 "mentions": { |
284 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", | 299 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", |
285 "items": { | 300 "items": { |
286 "$ref": "EntityMention" | 301 "$ref": "EntityMention" |
287 }, | 302 }, |
288 "type": "array" | 303 "type": "array" |
289 } | 304 } |
290 }, | 305 }, |
291 "type": "object" | 306 "type": "object" |
292 }, | 307 }, |
| 308 "AnalyzeSyntaxResponse": { |
| 309 "description": "The syntax analysis response message.", |
| 310 "id": "AnalyzeSyntaxResponse", |
| 311 "properties": { |
| 312 "language": { |
| 313 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", |
| 314 "type": "string" |
| 315 }, |
| 316 "sentences": { |
| 317 "description": "Sentences in the input document.", |
| 318 "items": { |
| 319 "$ref": "Sentence" |
| 320 }, |
| 321 "type": "array" |
| 322 }, |
| 323 "tokens": { |
| 324 "description": "Tokens, along with their syntactic informati
on, in the input document.", |
| 325 "items": { |
| 326 "$ref": "Token" |
| 327 }, |
| 328 "type": "array" |
| 329 } |
| 330 }, |
| 331 "type": "object" |
| 332 }, |
293 "AnnotateTextRequest": { | 333 "AnnotateTextRequest": { |
294 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 334 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
295 "id": "AnnotateTextRequest", | 335 "id": "AnnotateTextRequest", |
296 "properties": { | 336 "properties": { |
297 "encodingType": { | 337 "encodingType": { |
298 "description": "The encoding type used by the API to calcula
te offsets.", | 338 "description": "The encoding type used by the API to calcula
te offsets.", |
299 "enum": [ | 339 "enum": [ |
300 "NONE", | 340 "NONE", |
301 "UTF8", | 341 "UTF8", |
302 "UTF16", | 342 "UTF16", |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 "format": "int32", | 595 "format": "int32", |
556 "type": "integer" | 596 "type": "integer" |
557 } | 597 } |
558 }, | 598 }, |
559 "type": "object" | 599 "type": "object" |
560 }, | 600 }, |
561 "Token": { | 601 "Token": { |
562 "description": "Represents the smallest syntactic building block of
the text.", | 602 "description": "Represents the smallest syntactic building block of
the text.", |
563 "id": "Token", | 603 "id": "Token", |
564 "properties": { | 604 "properties": { |
565 "lemma": { | |
566 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", | |
567 "type": "string" | |
568 }, | |
569 "partOfSpeech": { | 605 "partOfSpeech": { |
570 "$ref": "PartOfSpeech", | 606 "$ref": "PartOfSpeech", |
571 "description": "Parts of speech tag for this token." | 607 "description": "Parts of speech tag for this token." |
572 }, | 608 }, |
573 "text": { | 609 "text": { |
574 "$ref": "TextSpan", | 610 "$ref": "TextSpan", |
575 "description": "The token text." | 611 "description": "The token text." |
576 }, | 612 }, |
577 "dependencyEdge": { | 613 "dependencyEdge": { |
578 "$ref": "DependencyEdge", | 614 "$ref": "DependencyEdge", |
579 "description": "Dependency tree parse for this token." | 615 "description": "Dependency tree parse for this token." |
| 616 }, |
| 617 "lemma": { |
| 618 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
| 619 "type": "string" |
580 } | 620 } |
581 }, | 621 }, |
582 "type": "object" | 622 "type": "object" |
583 }, | 623 }, |
584 "TextSpan": { | 624 "TextSpan": { |
585 "description": "Represents an output piece of text.", | 625 "description": "Represents an output piece of text.", |
586 "id": "TextSpan", | 626 "id": "TextSpan", |
587 "properties": { | 627 "properties": { |
588 "beginOffset": { | 628 "beginOffset": { |
589 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", | 629 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", |
(...skipping 27 matching lines...) Expand all Loading... |
617 "format": "int32", | 657 "format": "int32", |
618 "type": "integer" | 658 "type": "integer" |
619 }, | 659 }, |
620 "message": { | 660 "message": { |
621 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | 661 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
622 "type": "string" | 662 "type": "string" |
623 } | 663 } |
624 }, | 664 }, |
625 "type": "object" | 665 "type": "object" |
626 }, | 666 }, |
627 "Features": { | |
628 "description": "All available features for sentiment, syntax, and se
mantic analysis.\nSetting each one to true will enable that specific analysis fo
r the input.", | |
629 "id": "Features", | |
630 "properties": { | |
631 "extractSyntax": { | |
632 "description": "Extract syntax information.", | |
633 "type": "boolean" | |
634 }, | |
635 "extractDocumentSentiment": { | |
636 "description": "Extract document-level sentiment.", | |
637 "type": "boolean" | |
638 }, | |
639 "extractEntitySentiment": { | |
640 "description": "Extract entities and their associated sentim
ent.", | |
641 "type": "boolean" | |
642 }, | |
643 "extractEntities": { | |
644 "description": "Extract entities.", | |
645 "type": "boolean" | |
646 } | |
647 }, | |
648 "type": "object" | |
649 }, | |
650 "EntityMention": { | 667 "EntityMention": { |
651 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", | 668 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", |
652 "id": "EntityMention", | 669 "id": "EntityMention", |
653 "properties": { | 670 "properties": { |
| 671 "sentiment": { |
| 672 "$ref": "Sentiment", |
| 673 "description": "For calls to AnalyzeEntitySentiment or if\nA
nnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field
will contain the sentiment expressed for this mention of\nthe entity in the pro
vided document." |
| 674 }, |
654 "text": { | 675 "text": { |
655 "$ref": "TextSpan", | 676 "$ref": "TextSpan", |
656 "description": "The mention text." | 677 "description": "The mention text." |
657 }, | 678 }, |
658 "type": { | 679 "type": { |
659 "description": "The type of the entity mention.", | 680 "description": "The type of the entity mention.", |
660 "enum": [ | 681 "enum": [ |
661 "TYPE_UNKNOWN", | 682 "TYPE_UNKNOWN", |
662 "PROPER", | 683 "PROPER", |
663 "COMMON" | 684 "COMMON" |
664 ], | 685 ], |
665 "enumDescriptions": [ | 686 "enumDescriptions": [ |
666 "Unknown", | 687 "Unknown", |
667 "Proper name", | 688 "Proper name", |
668 "Common noun (or noun compound)" | 689 "Common noun (or noun compound)" |
669 ], | 690 ], |
670 "type": "string" | 691 "type": "string" |
671 }, | |
672 "sentiment": { | |
673 "$ref": "Sentiment", | |
674 "description": "For calls to AnalyzeEntitySentiment or if\nA
nnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field
will contain the sentiment expressed for this mention of\nthe entity in the pro
vided document." | |
675 } | 692 } |
676 }, | 693 }, |
677 "type": "object" | 694 "type": "object" |
678 }, | 695 }, |
679 "Sentence": { | 696 "Features": { |
680 "description": "Represents a sentence in the input document.", | 697 "description": "All available features for sentiment, syntax, and se
mantic analysis.\nSetting each one to true will enable that specific analysis fo
r the input.", |
681 "id": "Sentence", | 698 "id": "Features", |
682 "properties": { | 699 "properties": { |
683 "text": { | 700 "extractSyntax": { |
684 "$ref": "TextSpan", | 701 "description": "Extract syntax information.", |
685 "description": "The sentence text." | 702 "type": "boolean" |
686 }, | 703 }, |
687 "sentiment": { | 704 "extractDocumentSentiment": { |
688 "$ref": "Sentiment", | 705 "description": "Extract document-level sentiment.", |
689 "description": "For calls to AnalyzeSentiment or if\nAnnotat
eTextRequest.Features.extract_document_sentiment is set to\ntrue, this field wil
l contain the sentiment for the sentence." | 706 "type": "boolean" |
| 707 }, |
| 708 "extractEntitySentiment": { |
| 709 "description": "Extract entities and their associated sentim
ent.", |
| 710 "type": "boolean" |
| 711 }, |
| 712 "extractEntities": { |
| 713 "description": "Extract entities.", |
| 714 "type": "boolean" |
690 } | 715 } |
691 }, | 716 }, |
692 "type": "object" | 717 "type": "object" |
693 }, | 718 }, |
694 "Document": { | 719 "Document": { |
695 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | 720 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
696 "id": "Document", | 721 "id": "Document", |
697 "properties": { | 722 "properties": { |
698 "gcsContentUri": { | |
699 "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.\nN
OTE: Cloud Storage object versioning is not supported.", | |
700 "type": "string" | |
701 }, | |
702 "language": { | 723 "language": { |
703 "description": "The language of the document (if not specifi
ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes
are\naccepted.<br>\n[Language Support](/natural-language/docs/languages)\nlists
currently supported languages for each API method.\nIf the language (either spe
cified by the caller or automatically detected)\nis not supported by the called
API method, an `INVALID_ARGUMENT` error\nis returned.", | 724 "description": "The language of the document (if not specifi
ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes
are\naccepted.<br>\n[Language Support](/natural-language/docs/languages)\nlists
currently supported languages for each API method.\nIf the language (either spe
cified by the caller or automatically detected)\nis not supported by the called
API method, an `INVALID_ARGUMENT` error\nis returned.", |
704 "type": "string" | 725 "type": "string" |
705 }, | 726 }, |
706 "type": { | 727 "type": { |
707 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | 728 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
708 "enum": [ | 729 "enum": [ |
709 "TYPE_UNSPECIFIED", | 730 "TYPE_UNSPECIFIED", |
710 "PLAIN_TEXT", | 731 "PLAIN_TEXT", |
711 "HTML" | 732 "HTML" |
712 ], | 733 ], |
713 "enumDescriptions": [ | 734 "enumDescriptions": [ |
714 "The content type is not specified.", | 735 "The content type is not specified.", |
715 "Plain text", | 736 "Plain text", |
716 "HTML" | 737 "HTML" |
717 ], | 738 ], |
718 "type": "string" | 739 "type": "string" |
719 }, | 740 }, |
720 "content": { | 741 "content": { |
721 "description": "The content of the input in string format.", | 742 "description": "The content of the input in string format.", |
722 "type": "string" | 743 "type": "string" |
| 744 }, |
| 745 "gcsContentUri": { |
| 746 "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.\nN
OTE: Cloud Storage object versioning is not supported.", |
| 747 "type": "string" |
723 } | 748 } |
724 }, | 749 }, |
725 "type": "object" | 750 "type": "object" |
726 }, | 751 }, |
727 "Sentiment": { | 752 "Sentence": { |
728 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | 753 "description": "Represents a sentence in the input document.", |
729 "id": "Sentiment", | 754 "id": "Sentence", |
730 "properties": { | 755 "properties": { |
731 "score": { | 756 "text": { |
732 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", | 757 "$ref": "TextSpan", |
733 "format": "float", | 758 "description": "The sentence text." |
734 "type": "number" | |
735 }, | 759 }, |
736 "magnitude": { | 760 "sentiment": { |
737 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", | 761 "$ref": "Sentiment", |
738 "format": "float", | 762 "description": "For calls to AnalyzeSentiment or if\nAnnotat
eTextRequest.Features.extract_document_sentiment is set to\ntrue, this field wil
l contain the sentiment for the sentence." |
739 "type": "number" | |
740 } | 763 } |
741 }, | 764 }, |
742 "type": "object" | 765 "type": "object" |
743 }, | 766 }, |
744 "AnalyzeEntitiesRequest": { | 767 "AnalyzeEntitiesRequest": { |
745 "description": "The entity analysis request message.", | 768 "description": "The entity analysis request message.", |
746 "id": "AnalyzeEntitiesRequest", | 769 "id": "AnalyzeEntitiesRequest", |
747 "properties": { | 770 "properties": { |
748 "encodingType": { | 771 "encodingType": { |
749 "description": "The encoding type used by the API to calcula
te offsets.", | 772 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 11 matching lines...) Expand all Loading... |
761 ], | 784 ], |
762 "type": "string" | 785 "type": "string" |
763 }, | 786 }, |
764 "document": { | 787 "document": { |
765 "$ref": "Document", | 788 "$ref": "Document", |
766 "description": "Input document." | 789 "description": "Input document." |
767 } | 790 } |
768 }, | 791 }, |
769 "type": "object" | 792 "type": "object" |
770 }, | 793 }, |
| 794 "Sentiment": { |
| 795 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
| 796 "id": "Sentiment", |
| 797 "properties": { |
| 798 "magnitude": { |
| 799 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", |
| 800 "format": "float", |
| 801 "type": "number" |
| 802 }, |
| 803 "score": { |
| 804 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
| 805 "format": "float", |
| 806 "type": "number" |
| 807 } |
| 808 }, |
| 809 "type": "object" |
| 810 }, |
771 "AnalyzeEntitySentimentResponse": { | 811 "AnalyzeEntitySentimentResponse": { |
772 "description": "The entity-level sentiment analysis response message
.", | 812 "description": "The entity-level sentiment analysis response message
.", |
773 "id": "AnalyzeEntitySentimentResponse", | 813 "id": "AnalyzeEntitySentimentResponse", |
774 "properties": { | 814 "properties": { |
775 "language": { | |
776 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | |
777 "type": "string" | |
778 }, | |
779 "entities": { | 815 "entities": { |
780 "description": "The recognized entities in the input documen
t with associated sentiments.", | 816 "description": "The recognized entities in the input documen
t with associated sentiments.", |
781 "items": { | 817 "items": { |
782 "$ref": "Entity" | 818 "$ref": "Entity" |
783 }, | 819 }, |
784 "type": "array" | 820 "type": "array" |
| 821 }, |
| 822 "language": { |
| 823 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", |
| 824 "type": "string" |
785 } | 825 } |
786 }, | 826 }, |
787 "type": "object" | 827 "type": "object" |
788 }, | 828 }, |
789 "AnalyzeEntitySentimentRequest": { | 829 "AnalyzeEntitySentimentRequest": { |
790 "description": "The entity-level sentiment analysis request message.
", | 830 "description": "The entity-level sentiment analysis request message.
", |
791 "id": "AnalyzeEntitySentimentRequest", | 831 "id": "AnalyzeEntitySentimentRequest", |
792 "properties": { | 832 "properties": { |
793 "encodingType": { | 833 "encodingType": { |
794 "description": "The encoding type used by the API to calcula
te offsets.", | 834 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 15 matching lines...) Expand all Loading... |
810 "$ref": "Document", | 850 "$ref": "Document", |
811 "description": "Input document." | 851 "description": "Input document." |
812 } | 852 } |
813 }, | 853 }, |
814 "type": "object" | 854 "type": "object" |
815 }, | 855 }, |
816 "PartOfSpeech": { | 856 "PartOfSpeech": { |
817 "description": "Represents part of speech information for a token.", | 857 "description": "Represents part of speech information for a token.", |
818 "id": "PartOfSpeech", | 858 "id": "PartOfSpeech", |
819 "properties": { | 859 "properties": { |
820 "person": { | |
821 "description": "The grammatical person.", | |
822 "enum": [ | |
823 "PERSON_UNKNOWN", | |
824 "FIRST", | |
825 "SECOND", | |
826 "THIRD", | |
827 "REFLEXIVE_PERSON" | |
828 ], | |
829 "enumDescriptions": [ | |
830 "Person is not applicable in the analyzed language or is
not predicted.", | |
831 "First", | |
832 "Second", | |
833 "Third", | |
834 "Reflexive" | |
835 ], | |
836 "type": "string" | |
837 }, | |
838 "proper": { | 860 "proper": { |
839 "description": "The grammatical properness.", | 861 "description": "The grammatical properness.", |
840 "enum": [ | 862 "enum": [ |
841 "PROPER_UNKNOWN", | 863 "PROPER_UNKNOWN", |
842 "PROPER", | 864 "PROPER", |
843 "NOT_PROPER" | 865 "NOT_PROPER" |
844 ], | 866 ], |
845 "enumDescriptions": [ | 867 "enumDescriptions": [ |
846 "Proper is not applicable in the analyzed language or is
not predicted.", | 868 "Proper is not applicable in the analyzed language or is
not predicted.", |
847 "Proper", | 869 "Proper", |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 "MASCULINE", | 1091 "MASCULINE", |
1070 "NEUTER" | 1092 "NEUTER" |
1071 ], | 1093 ], |
1072 "enumDescriptions": [ | 1094 "enumDescriptions": [ |
1073 "Gender is not applicable in the analyzed language or is
not predicted.", | 1095 "Gender is not applicable in the analyzed language or is
not predicted.", |
1074 "Feminine", | 1096 "Feminine", |
1075 "Masculine", | 1097 "Masculine", |
1076 "Neuter" | 1098 "Neuter" |
1077 ], | 1099 ], |
1078 "type": "string" | 1100 "type": "string" |
| 1101 }, |
| 1102 "person": { |
| 1103 "description": "The grammatical person.", |
| 1104 "enum": [ |
| 1105 "PERSON_UNKNOWN", |
| 1106 "FIRST", |
| 1107 "SECOND", |
| 1108 "THIRD", |
| 1109 "REFLEXIVE_PERSON" |
| 1110 ], |
| 1111 "enumDescriptions": [ |
| 1112 "Person is not applicable in the analyzed language or is
not predicted.", |
| 1113 "First", |
| 1114 "Second", |
| 1115 "Third", |
| 1116 "Reflexive" |
| 1117 ], |
| 1118 "type": "string" |
1079 } | 1119 } |
1080 }, | 1120 }, |
1081 "type": "object" | 1121 "type": "object" |
1082 }, | 1122 }, |
1083 "AnalyzeSyntaxRequest": { | 1123 "AnalyzeSyntaxRequest": { |
1084 "description": "The syntax analysis request message.", | 1124 "description": "The syntax analysis request message.", |
1085 "id": "AnalyzeSyntaxRequest", | 1125 "id": "AnalyzeSyntaxRequest", |
1086 "properties": { | 1126 "properties": { |
1087 "encodingType": { | 1127 "encodingType": { |
1088 "description": "The encoding type used by the API to calcula
te offsets.", | 1128 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 10 matching lines...) Expand all Loading... |
1099 "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." | 1139 "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." |
1100 ], | 1140 ], |
1101 "type": "string" | 1141 "type": "string" |
1102 }, | 1142 }, |
1103 "document": { | 1143 "document": { |
1104 "$ref": "Document", | 1144 "$ref": "Document", |
1105 "description": "Input document." | 1145 "description": "Input document." |
1106 } | 1146 } |
1107 }, | 1147 }, |
1108 "type": "object" | 1148 "type": "object" |
1109 }, | |
1110 "AnalyzeSentimentResponse": { | |
1111 "description": "The sentiment analysis response message.", | |
1112 "id": "AnalyzeSentimentResponse", | |
1113 "properties": { | |
1114 "documentSentiment": { | |
1115 "$ref": "Sentiment", | |
1116 "description": "The overall sentiment of the input document.
" | |
1117 }, | |
1118 "language": { | |
1119 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | |
1120 "type": "string" | |
1121 }, | |
1122 "sentences": { | |
1123 "description": "The sentiment for all the sentences in the d
ocument.", | |
1124 "items": { | |
1125 "$ref": "Sentence" | |
1126 }, | |
1127 "type": "array" | |
1128 } | |
1129 }, | |
1130 "type": "object" | |
1131 }, | |
1132 "AnalyzeEntitiesResponse": { | |
1133 "description": "The entity analysis response message.", | |
1134 "id": "AnalyzeEntitiesResponse", | |
1135 "properties": { | |
1136 "language": { | |
1137 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | |
1138 "type": "string" | |
1139 }, | |
1140 "entities": { | |
1141 "description": "The recognized entities in the input documen
t.", | |
1142 "items": { | |
1143 "$ref": "Entity" | |
1144 }, | |
1145 "type": "array" | |
1146 } | |
1147 }, | |
1148 "type": "object" | |
1149 } | 1149 } |
1150 }, | 1150 }, |
1151 "servicePath": "", | 1151 "servicePath": "", |
1152 "title": "Google Cloud Natural Language API", | 1152 "title": "Google Cloud Natural Language API", |
1153 "version": "v1beta2" | 1153 "version": "v1beta2" |
1154 } | 1154 } |
OLD | NEW |