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": "Google Cloud Natural Language API provides natural language
understanding technologies to developers. Examples include sentiment analysis, e
ntity recognition, and text annotations.", | 15 "description": "Google Cloud Natural Language API provides natural language
understanding technologies to developers. Examples include sentiment analysis, e
ntity recognition, 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:v1beta1", | 22 "id": "language:v1beta1", |
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 "oauth_token": { |
| 29 "description": "OAuth 2.0 token for the current user.", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "bearer_token": { |
| 34 "description": "OAuth bearer token.", |
| 35 "location": "query", |
| 36 "type": "string" |
| 37 }, |
| 38 "upload_protocol": { |
| 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 40 "location": "query", |
| 41 "type": "string" |
| 42 }, |
| 43 "prettyPrint": { |
| 44 "default": "true", |
| 45 "description": "Returns response with indentations and line breaks."
, |
| 46 "location": "query", |
| 47 "type": "boolean" |
| 48 }, |
28 "fields": { | 49 "fields": { |
29 "description": "Selector specifying which fields to include in a par
tial response.", | 50 "description": "Selector specifying which fields to include in a par
tial response.", |
30 "location": "query", | 51 "location": "query", |
31 "type": "string" | 52 "type": "string" |
32 }, | 53 }, |
33 "uploadType": { | 54 "uploadType": { |
34 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 55 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
35 "location": "query", | 56 "location": "query", |
36 "type": "string" | 57 "type": "string" |
37 }, | 58 }, |
(...skipping 24 matching lines...) Expand all Loading... |
62 "proto" | 83 "proto" |
63 ], | 84 ], |
64 "enumDescriptions": [ | 85 "enumDescriptions": [ |
65 "Responses with Content-Type of application/json", | 86 "Responses with Content-Type of application/json", |
66 "Media download with context-dependent Content-Type", | 87 "Media download with context-dependent Content-Type", |
67 "Responses with Content-Type of application/x-protobuf" | 88 "Responses with Content-Type of application/x-protobuf" |
68 ], | 89 ], |
69 "location": "query", | 90 "location": "query", |
70 "type": "string" | 91 "type": "string" |
71 }, | 92 }, |
| 93 "key": { |
| 94 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
72 "access_token": { | 98 "access_token": { |
73 "description": "OAuth access token.", | 99 "description": "OAuth access token.", |
74 "location": "query", | 100 "location": "query", |
75 "type": "string" | 101 "type": "string" |
76 }, | 102 }, |
77 "key": { | |
78 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
79 "location": "query", | |
80 "type": "string" | |
81 }, | |
82 "quotaUser": { | 103 "quotaUser": { |
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.", | 104 "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", | 105 "location": "query", |
85 "type": "string" | 106 "type": "string" |
86 }, | 107 }, |
87 "pp": { | 108 "pp": { |
88 "default": "true", | 109 "default": "true", |
89 "description": "Pretty-print response.", | 110 "description": "Pretty-print response.", |
90 "location": "query", | 111 "location": "query", |
91 "type": "boolean" | 112 "type": "boolean" |
92 }, | |
93 "oauth_token": { | |
94 "description": "OAuth 2.0 token for the current user.", | |
95 "location": "query", | |
96 "type": "string" | |
97 }, | |
98 "bearer_token": { | |
99 "description": "OAuth bearer token.", | |
100 "location": "query", | |
101 "type": "string" | |
102 }, | |
103 "upload_protocol": { | |
104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
105 "location": "query", | |
106 "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 "analyzeEntities": { |
| 120 "description": "Finds named entities (currently finds proper
names) in the text,\nentity types, salience, mentions for each entity, and othe
r properties.", |
| 121 "httpMethod": "POST", |
| 122 "id": "language.documents.analyzeEntities", |
| 123 "parameterOrder": [], |
| 124 "parameters": {}, |
| 125 "path": "v1beta1/documents:analyzeEntities", |
| 126 "request": { |
| 127 "$ref": "AnalyzeEntitiesRequest" |
| 128 }, |
| 129 "response": { |
| 130 "$ref": "AnalyzeEntitiesResponse" |
| 131 }, |
| 132 "scopes": [ |
| 133 "https://www.googleapis.com/auth/cloud-platform" |
| 134 ] |
| 135 }, |
| 136 "analyzeSyntax": { |
| 137 "description": "Analyzes the syntax of the text and provides
sentence boundaries and\ntokenization along with part of speech tags, dependenc
y trees, and other\nproperties.", |
| 138 "httpMethod": "POST", |
| 139 "id": "language.documents.analyzeSyntax", |
| 140 "parameterOrder": [], |
| 141 "parameters": {}, |
| 142 "path": "v1beta1/documents:analyzeSyntax", |
| 143 "request": { |
| 144 "$ref": "AnalyzeSyntaxRequest" |
| 145 }, |
| 146 "response": { |
| 147 "$ref": "AnalyzeSyntaxResponse" |
| 148 }, |
| 149 "scopes": [ |
| 150 "https://www.googleapis.com/auth/cloud-platform" |
| 151 ] |
| 152 }, |
119 "analyzeSentiment": { | 153 "analyzeSentiment": { |
120 "description": "Analyzes the sentiment of the provided text.
", | 154 "description": "Analyzes the sentiment of the provided text.
", |
121 "httpMethod": "POST", | 155 "httpMethod": "POST", |
122 "id": "language.documents.analyzeSentiment", | 156 "id": "language.documents.analyzeSentiment", |
123 "parameterOrder": [], | 157 "parameterOrder": [], |
124 "parameters": {}, | 158 "parameters": {}, |
125 "path": "v1beta1/documents:analyzeSentiment", | 159 "path": "v1beta1/documents:analyzeSentiment", |
126 "request": { | 160 "request": { |
127 "$ref": "AnalyzeSentimentRequest" | 161 "$ref": "AnalyzeSentimentRequest" |
128 }, | 162 }, |
(...skipping 12 matching lines...) Expand all Loading... |
141 "parameters": {}, | 175 "parameters": {}, |
142 "path": "v1beta1/documents:annotateText", | 176 "path": "v1beta1/documents:annotateText", |
143 "request": { | 177 "request": { |
144 "$ref": "AnnotateTextRequest" | 178 "$ref": "AnnotateTextRequest" |
145 }, | 179 }, |
146 "response": { | 180 "response": { |
147 "$ref": "AnnotateTextResponse" | 181 "$ref": "AnnotateTextResponse" |
148 }, | 182 }, |
149 "scopes": [ | 183 "scopes": [ |
150 "https://www.googleapis.com/auth/cloud-platform" | 184 "https://www.googleapis.com/auth/cloud-platform" |
151 ] | |
152 }, | |
153 "analyzeEntities": { | |
154 "description": "Finds named entities (currently finds proper
names) in the text,\nentity types, salience, mentions for each entity, and othe
r properties.", | |
155 "httpMethod": "POST", | |
156 "id": "language.documents.analyzeEntities", | |
157 "parameterOrder": [], | |
158 "parameters": {}, | |
159 "path": "v1beta1/documents:analyzeEntities", | |
160 "request": { | |
161 "$ref": "AnalyzeEntitiesRequest" | |
162 }, | |
163 "response": { | |
164 "$ref": "AnalyzeEntitiesResponse" | |
165 }, | |
166 "scopes": [ | |
167 "https://www.googleapis.com/auth/cloud-platform" | |
168 ] | |
169 }, | |
170 "analyzeSyntax": { | |
171 "description": "Analyzes the syntax of the text and provides
sentence boundaries and\ntokenization along with part of speech tags, dependenc
y trees, and other\nproperties.", | |
172 "httpMethod": "POST", | |
173 "id": "language.documents.analyzeSyntax", | |
174 "parameterOrder": [], | |
175 "parameters": {}, | |
176 "path": "v1beta1/documents:analyzeSyntax", | |
177 "request": { | |
178 "$ref": "AnalyzeSyntaxRequest" | |
179 }, | |
180 "response": { | |
181 "$ref": "AnalyzeSyntaxResponse" | |
182 }, | |
183 "scopes": [ | |
184 "https://www.googleapis.com/auth/cloud-platform" | |
185 ] | 185 ] |
186 } | 186 } |
187 } | 187 } |
188 } | 188 } |
189 }, | 189 }, |
190 "revision": "20170206", | 190 "revision": "20170301", |
191 "rootUrl": "https://language.googleapis.com/", | 191 "rootUrl": "https://language.googleapis.com/", |
192 "schemas": { | 192 "schemas": { |
| 193 "TextSpan": { |
| 194 "description": "Represents an output piece of text.", |
| 195 "id": "TextSpan", |
| 196 "properties": { |
| 197 "beginOffset": { |
| 198 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", |
| 199 "format": "int32", |
| 200 "type": "integer" |
| 201 }, |
| 202 "content": { |
| 203 "description": "The content of the output text.", |
| 204 "type": "string" |
| 205 } |
| 206 }, |
| 207 "type": "object" |
| 208 }, |
193 "Token": { | 209 "Token": { |
194 "description": "Represents the smallest syntactic building block of
the text.", | 210 "description": "Represents the smallest syntactic building block of
the text.", |
195 "id": "Token", | 211 "id": "Token", |
196 "properties": { | 212 "properties": { |
| 213 "partOfSpeech": { |
| 214 "$ref": "PartOfSpeech", |
| 215 "description": "Parts of speech tag for this token." |
| 216 }, |
197 "text": { | 217 "text": { |
198 "$ref": "TextSpan", | 218 "$ref": "TextSpan", |
199 "description": "The token text." | 219 "description": "The token text." |
200 }, | 220 }, |
201 "dependencyEdge": { | 221 "dependencyEdge": { |
202 "$ref": "DependencyEdge", | 222 "$ref": "DependencyEdge", |
203 "description": "Dependency tree parse for this token." | 223 "description": "Dependency tree parse for this token." |
204 }, | 224 }, |
205 "lemma": { | 225 "lemma": { |
206 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", | 226 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
207 "type": "string" | 227 "type": "string" |
208 }, | |
209 "partOfSpeech": { | |
210 "$ref": "PartOfSpeech", | |
211 "description": "Parts of speech tag for this token." | |
212 } | |
213 }, | |
214 "type": "object" | |
215 }, | |
216 "TextSpan": { | |
217 "description": "Represents an output piece of text.", | |
218 "id": "TextSpan", | |
219 "properties": { | |
220 "beginOffset": { | |
221 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", | |
222 "format": "int32", | |
223 "type": "integer" | |
224 }, | |
225 "content": { | |
226 "description": "The content of the output text.", | |
227 "type": "string" | |
228 } | 228 } |
229 }, | 229 }, |
230 "type": "object" | 230 "type": "object" |
231 }, | 231 }, |
232 "Status": { | 232 "Status": { |
233 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", | 233 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
234 "id": "Status", | 234 "id": "Status", |
235 "properties": { | 235 "properties": { |
236 "code": { | |
237 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
238 "format": "int32", | |
239 "type": "integer" | |
240 }, | |
241 "message": { | 236 "message": { |
242 "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.", | 237 "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.", |
243 "type": "string" | 238 "type": "string" |
244 }, | 239 }, |
245 "details": { | 240 "details": { |
246 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", | 241 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
247 "items": { | 242 "items": { |
248 "additionalProperties": { | 243 "additionalProperties": { |
249 "description": "Properties of the object. Contains f
ield @type with type URL.", | 244 "description": "Properties of the object. Contains f
ield @type with type URL.", |
250 "type": "any" | 245 "type": "any" |
251 }, | 246 }, |
252 "type": "object" | 247 "type": "object" |
253 }, | 248 }, |
254 "type": "array" | 249 "type": "array" |
| 250 }, |
| 251 "code": { |
| 252 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 253 "format": "int32", |
| 254 "type": "integer" |
255 } | 255 } |
256 }, | 256 }, |
257 "type": "object" | 257 "type": "object" |
258 }, | 258 }, |
259 "Features": { | 259 "Features": { |
260 "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.", | 260 "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.", |
261 "id": "Features", | 261 "id": "Features", |
262 "properties": { | 262 "properties": { |
263 "extractSyntax": { | 263 "extractSyntax": { |
264 "description": "Extract syntax information.", | 264 "description": "Extract syntax information.", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 ], | 297 ], |
298 "type": "string" | 298 "type": "string" |
299 } | 299 } |
300 }, | 300 }, |
301 "type": "object" | 301 "type": "object" |
302 }, | 302 }, |
303 "Document": { | 303 "Document": { |
304 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | 304 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
305 "id": "Document", | 305 "id": "Document", |
306 "properties": { | 306 "properties": { |
| 307 "gcsContentUri": { |
| 308 "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.", |
| 309 "type": "string" |
| 310 }, |
307 "language": { | 311 "language": { |
308 "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**Current Language Restrictions:**\n\n * Only English, Span
ish, and Japanese textual content are supported.\nIf the language (either specif
ied by the caller or automatically detected)\nis not supported by the called API
method, an `INVALID_ARGUMENT` error\nis returned.", | 312 "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**Current Language Restrictions:**\n\n * Only English, Span
ish, and Japanese textual content are supported.\nIf the language (either specif
ied by the caller or automatically detected)\nis not supported by the called API
method, an `INVALID_ARGUMENT` error\nis returned.", |
309 "type": "string" | 313 "type": "string" |
310 }, | 314 }, |
311 "type": { | 315 "type": { |
312 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | 316 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
313 "enum": [ | 317 "enum": [ |
314 "TYPE_UNSPECIFIED", | 318 "TYPE_UNSPECIFIED", |
315 "PLAIN_TEXT", | 319 "PLAIN_TEXT", |
316 "HTML" | 320 "HTML" |
317 ], | 321 ], |
318 "enumDescriptions": [ | 322 "enumDescriptions": [ |
319 "The content type is not specified.", | 323 "The content type is not specified.", |
320 "Plain text", | 324 "Plain text", |
321 "HTML" | 325 "HTML" |
322 ], | 326 ], |
323 "type": "string" | 327 "type": "string" |
324 }, | 328 }, |
325 "content": { | 329 "content": { |
326 "description": "The content of the input in string format.", | 330 "description": "The content of the input in string format.", |
327 "type": "string" | 331 "type": "string" |
328 }, | |
329 "gcsContentUri": { | |
330 "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.", | |
331 "type": "string" | |
332 } | 332 } |
333 }, | 333 }, |
334 "type": "object" | 334 "type": "object" |
335 }, | 335 }, |
336 "Sentence": { | 336 "Sentence": { |
337 "description": "Represents a sentence in the input document.", | 337 "description": "Represents a sentence in the input document.", |
338 "id": "Sentence", | 338 "id": "Sentence", |
339 "properties": { | 339 "properties": { |
| 340 "sentiment": { |
| 341 "$ref": "Sentiment", |
| 342 "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." |
| 343 }, |
340 "text": { | 344 "text": { |
341 "$ref": "TextSpan", | 345 "$ref": "TextSpan", |
342 "description": "The sentence text." | 346 "description": "The sentence text." |
343 }, | |
344 "sentiment": { | |
345 "$ref": "Sentiment", | |
346 "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." | |
347 } | 347 } |
348 }, | 348 }, |
349 "type": "object" | 349 "type": "object" |
350 }, | |
351 "Sentiment": { | |
352 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | |
353 "id": "Sentiment", | |
354 "properties": { | |
355 "polarity": { | |
356 "description": "DEPRECATED FIELD - This field is being depre
cated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.go
ogle.com/natural-language/docs for more information.", | |
357 "format": "float", | |
358 "type": "number" | |
359 }, | |
360 "score": { | |
361 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", | |
362 "format": "float", | |
363 "type": "number" | |
364 }, | |
365 "magnitude": { | |
366 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", | |
367 "format": "float", | |
368 "type": "number" | |
369 } | |
370 }, | |
371 "type": "object" | |
372 }, | 350 }, |
373 "AnalyzeEntitiesRequest": { | 351 "AnalyzeEntitiesRequest": { |
374 "description": "The entity analysis request message.", | 352 "description": "The entity analysis request message.", |
375 "id": "AnalyzeEntitiesRequest", | 353 "id": "AnalyzeEntitiesRequest", |
376 "properties": { | 354 "properties": { |
377 "encodingType": { | 355 "encodingType": { |
378 "description": "The encoding type used by the API to calcula
te offsets.", | 356 "description": "The encoding type used by the API to calcula
te offsets.", |
379 "enum": [ | 357 "enum": [ |
380 "NONE", | 358 "NONE", |
381 "UTF8", | 359 "UTF8", |
382 "UTF16", | 360 "UTF16", |
383 "UTF32" | 361 "UTF32" |
384 ], | 362 ], |
385 "enumDescriptions": [ | 363 "enumDescriptions": [ |
386 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | 364 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
387 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | 365 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", |
388 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | 366 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", |
389 "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." | 367 "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." |
390 ], | 368 ], |
391 "type": "string" | 369 "type": "string" |
392 }, | 370 }, |
393 "document": { | 371 "document": { |
394 "$ref": "Document", | 372 "$ref": "Document", |
395 "description": "Input document." | 373 "description": "Input document." |
396 } | 374 } |
397 }, | 375 }, |
398 "type": "object" | 376 "type": "object" |
399 }, | 377 }, |
| 378 "Sentiment": { |
| 379 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
| 380 "id": "Sentiment", |
| 381 "properties": { |
| 382 "magnitude": { |
| 383 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", |
| 384 "format": "float", |
| 385 "type": "number" |
| 386 }, |
| 387 "polarity": { |
| 388 "description": "DEPRECATED FIELD - This field is being depre
cated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.go
ogle.com/natural-language/docs for more information.", |
| 389 "format": "float", |
| 390 "type": "number" |
| 391 }, |
| 392 "score": { |
| 393 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
| 394 "format": "float", |
| 395 "type": "number" |
| 396 } |
| 397 }, |
| 398 "type": "object" |
| 399 }, |
400 "PartOfSpeech": { | 400 "PartOfSpeech": { |
401 "description": "Represents part of speech information for a token.", | 401 "description": "Represents part of speech information for a token.", |
402 "id": "PartOfSpeech", | 402 "id": "PartOfSpeech", |
403 "properties": { | 403 "properties": { |
404 "voice": { | |
405 "description": "The grammatical voice.", | |
406 "enum": [ | |
407 "VOICE_UNKNOWN", | |
408 "ACTIVE", | |
409 "CAUSATIVE", | |
410 "PASSIVE" | |
411 ], | |
412 "enumDescriptions": [ | |
413 "Voice is not applicable in the analyzed language or is
not predicted.", | |
414 "Active", | |
415 "Causative", | |
416 "Passive" | |
417 ], | |
418 "type": "string" | |
419 }, | |
420 "aspect": { | |
421 "description": "The grammatical aspect.", | |
422 "enum": [ | |
423 "ASPECT_UNKNOWN", | |
424 "PERFECTIVE", | |
425 "IMPERFECTIVE", | |
426 "PROGRESSIVE" | |
427 ], | |
428 "enumDescriptions": [ | |
429 "Aspect is not applicable in the analyzed language or is
not predicted.", | |
430 "Perfective", | |
431 "Imperfective", | |
432 "Progressive" | |
433 ], | |
434 "type": "string" | |
435 }, | |
436 "mood": { | |
437 "description": "The grammatical mood.", | |
438 "enum": [ | |
439 "MOOD_UNKNOWN", | |
440 "CONDITIONAL_MOOD", | |
441 "IMPERATIVE", | |
442 "INDICATIVE", | |
443 "INTERROGATIVE", | |
444 "JUSSIVE", | |
445 "SUBJUNCTIVE" | |
446 ], | |
447 "enumDescriptions": [ | |
448 "Mood is not applicable in the analyzed language or is n
ot predicted.", | |
449 "Conditional", | |
450 "Imperative", | |
451 "Indicative", | |
452 "Interrogative", | |
453 "Jussive", | |
454 "Subjunctive" | |
455 ], | |
456 "type": "string" | |
457 }, | |
458 "tag": { | |
459 "description": "The part of speech tag.", | |
460 "enum": [ | |
461 "UNKNOWN", | |
462 "ADJ", | |
463 "ADP", | |
464 "ADV", | |
465 "CONJ", | |
466 "DET", | |
467 "NOUN", | |
468 "NUM", | |
469 "PRON", | |
470 "PRT", | |
471 "PUNCT", | |
472 "VERB", | |
473 "X", | |
474 "AFFIX" | |
475 ], | |
476 "enumDescriptions": [ | |
477 "Unknown", | |
478 "Adjective", | |
479 "Adposition (preposition and postposition)", | |
480 "Adverb", | |
481 "Conjunction", | |
482 "Determiner", | |
483 "Noun (common and proper)", | |
484 "Cardinal number", | |
485 "Pronoun", | |
486 "Particle or other function word", | |
487 "Punctuation", | |
488 "Verb (all tenses and modes)", | |
489 "Other: foreign words, typos, abbreviations", | |
490 "Affix" | |
491 ], | |
492 "type": "string" | |
493 }, | |
494 "gender": { | |
495 "description": "The grammatical gender.", | |
496 "enum": [ | |
497 "GENDER_UNKNOWN", | |
498 "FEMININE", | |
499 "MASCULINE", | |
500 "NEUTER" | |
501 ], | |
502 "enumDescriptions": [ | |
503 "Gender is not applicable in the analyzed language or is
not predicted.", | |
504 "Feminine", | |
505 "Masculine", | |
506 "Neuter" | |
507 ], | |
508 "type": "string" | |
509 }, | |
510 "person": { | |
511 "description": "The grammatical person.", | |
512 "enum": [ | |
513 "PERSON_UNKNOWN", | |
514 "FIRST", | |
515 "SECOND", | |
516 "THIRD", | |
517 "REFLEXIVE_PERSON" | |
518 ], | |
519 "enumDescriptions": [ | |
520 "Person is not applicable in the analyzed language or is
not predicted.", | |
521 "First", | |
522 "Second", | |
523 "Third", | |
524 "Reflexive" | |
525 ], | |
526 "type": "string" | |
527 }, | |
528 "proper": { | 404 "proper": { |
529 "description": "The grammatical properness.", | 405 "description": "The grammatical properness.", |
530 "enum": [ | 406 "enum": [ |
531 "PROPER_UNKNOWN", | 407 "PROPER_UNKNOWN", |
532 "PROPER", | 408 "PROPER", |
533 "NOT_PROPER" | 409 "NOT_PROPER" |
534 ], | 410 ], |
535 "enumDescriptions": [ | 411 "enumDescriptions": [ |
536 "Proper is not applicable in the analyzed language or is
not predicted.", | 412 "Proper is not applicable in the analyzed language or is
not predicted.", |
537 "Proper", | 413 "Proper", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 "PLURAL", | 529 "PLURAL", |
654 "DUAL" | 530 "DUAL" |
655 ], | 531 ], |
656 "enumDescriptions": [ | 532 "enumDescriptions": [ |
657 "Number is not applicable in the analyzed language or is
not predicted.", | 533 "Number is not applicable in the analyzed language or is
not predicted.", |
658 "Singular", | 534 "Singular", |
659 "Plural", | 535 "Plural", |
660 "Dual" | 536 "Dual" |
661 ], | 537 ], |
662 "type": "string" | 538 "type": "string" |
| 539 }, |
| 540 "voice": { |
| 541 "description": "The grammatical voice.", |
| 542 "enum": [ |
| 543 "VOICE_UNKNOWN", |
| 544 "ACTIVE", |
| 545 "CAUSATIVE", |
| 546 "PASSIVE" |
| 547 ], |
| 548 "enumDescriptions": [ |
| 549 "Voice is not applicable in the analyzed language or is
not predicted.", |
| 550 "Active", |
| 551 "Causative", |
| 552 "Passive" |
| 553 ], |
| 554 "type": "string" |
| 555 }, |
| 556 "aspect": { |
| 557 "description": "The grammatical aspect.", |
| 558 "enum": [ |
| 559 "ASPECT_UNKNOWN", |
| 560 "PERFECTIVE", |
| 561 "IMPERFECTIVE", |
| 562 "PROGRESSIVE" |
| 563 ], |
| 564 "enumDescriptions": [ |
| 565 "Aspect is not applicable in the analyzed language or is
not predicted.", |
| 566 "Perfective", |
| 567 "Imperfective", |
| 568 "Progressive" |
| 569 ], |
| 570 "type": "string" |
| 571 }, |
| 572 "mood": { |
| 573 "description": "The grammatical mood.", |
| 574 "enum": [ |
| 575 "MOOD_UNKNOWN", |
| 576 "CONDITIONAL_MOOD", |
| 577 "IMPERATIVE", |
| 578 "INDICATIVE", |
| 579 "INTERROGATIVE", |
| 580 "JUSSIVE", |
| 581 "SUBJUNCTIVE" |
| 582 ], |
| 583 "enumDescriptions": [ |
| 584 "Mood is not applicable in the analyzed language or is n
ot predicted.", |
| 585 "Conditional", |
| 586 "Imperative", |
| 587 "Indicative", |
| 588 "Interrogative", |
| 589 "Jussive", |
| 590 "Subjunctive" |
| 591 ], |
| 592 "type": "string" |
| 593 }, |
| 594 "tag": { |
| 595 "description": "The part of speech tag.", |
| 596 "enum": [ |
| 597 "UNKNOWN", |
| 598 "ADJ", |
| 599 "ADP", |
| 600 "ADV", |
| 601 "CONJ", |
| 602 "DET", |
| 603 "NOUN", |
| 604 "NUM", |
| 605 "PRON", |
| 606 "PRT", |
| 607 "PUNCT", |
| 608 "VERB", |
| 609 "X", |
| 610 "AFFIX" |
| 611 ], |
| 612 "enumDescriptions": [ |
| 613 "Unknown", |
| 614 "Adjective", |
| 615 "Adposition (preposition and postposition)", |
| 616 "Adverb", |
| 617 "Conjunction", |
| 618 "Determiner", |
| 619 "Noun (common and proper)", |
| 620 "Cardinal number", |
| 621 "Pronoun", |
| 622 "Particle or other function word", |
| 623 "Punctuation", |
| 624 "Verb (all tenses and modes)", |
| 625 "Other: foreign words, typos, abbreviations", |
| 626 "Affix" |
| 627 ], |
| 628 "type": "string" |
| 629 }, |
| 630 "gender": { |
| 631 "description": "The grammatical gender.", |
| 632 "enum": [ |
| 633 "GENDER_UNKNOWN", |
| 634 "FEMININE", |
| 635 "MASCULINE", |
| 636 "NEUTER" |
| 637 ], |
| 638 "enumDescriptions": [ |
| 639 "Gender is not applicable in the analyzed language or is
not predicted.", |
| 640 "Feminine", |
| 641 "Masculine", |
| 642 "Neuter" |
| 643 ], |
| 644 "type": "string" |
| 645 }, |
| 646 "person": { |
| 647 "description": "The grammatical person.", |
| 648 "enum": [ |
| 649 "PERSON_UNKNOWN", |
| 650 "FIRST", |
| 651 "SECOND", |
| 652 "THIRD", |
| 653 "REFLEXIVE_PERSON" |
| 654 ], |
| 655 "enumDescriptions": [ |
| 656 "Person is not applicable in the analyzed language or is
not predicted.", |
| 657 "First", |
| 658 "Second", |
| 659 "Third", |
| 660 "Reflexive" |
| 661 ], |
| 662 "type": "string" |
663 } | 663 } |
664 }, | 664 }, |
665 "type": "object" | 665 "type": "object" |
666 }, | 666 }, |
667 "AnalyzeSyntaxRequest": { | 667 "AnalyzeSyntaxRequest": { |
668 "description": "The syntax analysis request message.", | 668 "description": "The syntax analysis request message.", |
669 "id": "AnalyzeSyntaxRequest", | 669 "id": "AnalyzeSyntaxRequest", |
670 "properties": { | 670 "properties": { |
671 "encodingType": { | 671 "encodingType": { |
672 "description": "The encoding type used by the API to calcula
te offsets.", | 672 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 15 matching lines...) Expand all Loading... |
688 "$ref": "Document", | 688 "$ref": "Document", |
689 "description": "Input document." | 689 "description": "Input document." |
690 } | 690 } |
691 }, | 691 }, |
692 "type": "object" | 692 "type": "object" |
693 }, | 693 }, |
694 "AnalyzeSentimentResponse": { | 694 "AnalyzeSentimentResponse": { |
695 "description": "The sentiment analysis response message.", | 695 "description": "The sentiment analysis response message.", |
696 "id": "AnalyzeSentimentResponse", | 696 "id": "AnalyzeSentimentResponse", |
697 "properties": { | 697 "properties": { |
| 698 "documentSentiment": { |
| 699 "$ref": "Sentiment", |
| 700 "description": "The overall sentiment of the input document.
" |
| 701 }, |
698 "language": { | 702 "language": { |
699 "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.", | 703 "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.", |
700 "type": "string" | 704 "type": "string" |
701 }, | 705 }, |
702 "sentences": { | 706 "sentences": { |
703 "description": "The sentiment for all the sentences in the d
ocument.", | 707 "description": "The sentiment for all the sentences in the d
ocument.", |
704 "items": { | 708 "items": { |
705 "$ref": "Sentence" | 709 "$ref": "Sentence" |
706 }, | 710 }, |
707 "type": "array" | 711 "type": "array" |
708 }, | |
709 "documentSentiment": { | |
710 "$ref": "Sentiment", | |
711 "description": "The overall sentiment of the input document.
" | |
712 } | 712 } |
713 }, | 713 }, |
714 "type": "object" | 714 "type": "object" |
715 }, | 715 }, |
716 "AnalyzeEntitiesResponse": { | 716 "AnalyzeEntitiesResponse": { |
717 "description": "The entity analysis response message.", | 717 "description": "The entity analysis response message.", |
718 "id": "AnalyzeEntitiesResponse", | 718 "id": "AnalyzeEntitiesResponse", |
719 "properties": { | 719 "properties": { |
720 "language": { | |
721 "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.", | |
722 "type": "string" | |
723 }, | |
724 "entities": { | 720 "entities": { |
725 "description": "The recognized entities in the input documen
t.", | 721 "description": "The recognized entities in the input documen
t.", |
726 "items": { | 722 "items": { |
727 "$ref": "Entity" | 723 "$ref": "Entity" |
728 }, | 724 }, |
729 "type": "array" | 725 "type": "array" |
| 726 }, |
| 727 "language": { |
| 728 "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.", |
| 729 "type": "string" |
730 } | 730 } |
731 }, | 731 }, |
732 "type": "object" | 732 "type": "object" |
733 }, | 733 }, |
734 "Entity": { | 734 "Entity": { |
735 "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.", | 735 "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.", |
736 "id": "Entity", | 736 "id": "Entity", |
737 "properties": { | 737 "properties": { |
738 "mentions": { | 738 "mentions": { |
739 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", | 739 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 "format": "float", | 782 "format": "float", |
783 "type": "number" | 783 "type": "number" |
784 } | 784 } |
785 }, | 785 }, |
786 "type": "object" | 786 "type": "object" |
787 }, | 787 }, |
788 "AnalyzeSyntaxResponse": { | 788 "AnalyzeSyntaxResponse": { |
789 "description": "The syntax analysis response message.", | 789 "description": "The syntax analysis response message.", |
790 "id": "AnalyzeSyntaxResponse", | 790 "id": "AnalyzeSyntaxResponse", |
791 "properties": { | 791 "properties": { |
| 792 "language": { |
| 793 "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.", |
| 794 "type": "string" |
| 795 }, |
792 "sentences": { | 796 "sentences": { |
793 "description": "Sentences in the input document.", | 797 "description": "Sentences in the input document.", |
794 "items": { | 798 "items": { |
795 "$ref": "Sentence" | 799 "$ref": "Sentence" |
796 }, | 800 }, |
797 "type": "array" | 801 "type": "array" |
798 }, | 802 }, |
799 "tokens": { | 803 "tokens": { |
800 "description": "Tokens, along with their syntactic informati
on, in the input document.", | 804 "description": "Tokens, along with their syntactic informati
on, in the input document.", |
801 "items": { | 805 "items": { |
802 "$ref": "Token" | 806 "$ref": "Token" |
803 }, | 807 }, |
804 "type": "array" | 808 "type": "array" |
805 }, | |
806 "language": { | |
807 "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.", | |
808 "type": "string" | |
809 } | 809 } |
810 }, | 810 }, |
811 "type": "object" | 811 "type": "object" |
812 }, | 812 }, |
813 "AnnotateTextRequest": { | 813 "AnnotateTextRequest": { |
814 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 814 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
815 "id": "AnnotateTextRequest", | 815 "id": "AnnotateTextRequest", |
816 "properties": { | 816 "properties": { |
| 817 "encodingType": { |
| 818 "description": "The encoding type used by the API to calcula
te offsets.", |
| 819 "enum": [ |
| 820 "NONE", |
| 821 "UTF8", |
| 822 "UTF16", |
| 823 "UTF32" |
| 824 ], |
| 825 "enumDescriptions": [ |
| 826 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 827 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", |
| 828 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", |
| 829 "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." |
| 830 ], |
| 831 "type": "string" |
| 832 }, |
817 "document": { | 833 "document": { |
818 "$ref": "Document", | 834 "$ref": "Document", |
819 "description": "Input document." | 835 "description": "Input document." |
820 }, | 836 }, |
821 "features": { | 837 "features": { |
822 "$ref": "Features", | 838 "$ref": "Features", |
823 "description": "The enabled features." | 839 "description": "The enabled features." |
824 }, | 840 } |
| 841 }, |
| 842 "type": "object" |
| 843 }, |
| 844 "AnalyzeSentimentRequest": { |
| 845 "description": "The sentiment analysis request message.", |
| 846 "id": "AnalyzeSentimentRequest", |
| 847 "properties": { |
825 "encodingType": { | 848 "encodingType": { |
826 "description": "The encoding type used by the API to calcula
te offsets.", | 849 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", |
827 "enum": [ | 850 "enum": [ |
828 "NONE", | 851 "NONE", |
829 "UTF8", | 852 "UTF8", |
830 "UTF16", | 853 "UTF16", |
831 "UTF32" | 854 "UTF32" |
832 ], | 855 ], |
833 "enumDescriptions": [ | 856 "enumDescriptions": [ |
834 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | 857 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
835 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | 858 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", |
836 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | 859 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", |
837 "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." | 860 "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." |
838 ], | 861 ], |
839 "type": "string" | 862 "type": "string" |
| 863 }, |
| 864 "document": { |
| 865 "$ref": "Document", |
| 866 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." |
840 } | 867 } |
841 }, | 868 }, |
842 "type": "object" | 869 "type": "object" |
843 }, | 870 }, |
844 "AnnotateTextResponse": { | 871 "AnnotateTextResponse": { |
845 "description": "The text annotations response message.", | 872 "description": "The text annotations response message.", |
846 "id": "AnnotateTextResponse", | 873 "id": "AnnotateTextResponse", |
847 "properties": { | 874 "properties": { |
848 "entities": { | |
849 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", | |
850 "items": { | |
851 "$ref": "Entity" | |
852 }, | |
853 "type": "array" | |
854 }, | |
855 "documentSentiment": { | |
856 "$ref": "Sentiment", | |
857 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." | |
858 }, | |
859 "language": { | 875 "language": { |
860 "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.", | 876 "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.", |
861 "type": "string" | 877 "type": "string" |
862 }, | 878 }, |
863 "sentences": { | 879 "sentences": { |
864 "description": "Sentences in the input document. Populated i
f the user enables\nAnnotateTextRequest.Features.extract_syntax.", | 880 "description": "Sentences in the input document. Populated i
f the user enables\nAnnotateTextRequest.Features.extract_syntax.", |
865 "items": { | 881 "items": { |
866 "$ref": "Sentence" | 882 "$ref": "Sentence" |
867 }, | 883 }, |
868 "type": "array" | 884 "type": "array" |
869 }, | 885 }, |
870 "tokens": { | 886 "tokens": { |
871 "description": "Tokens, along with their syntactic informati
on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F
eatures.extract_syntax.", | 887 "description": "Tokens, along with their syntactic informati
on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F
eatures.extract_syntax.", |
872 "items": { | 888 "items": { |
873 "$ref": "Token" | 889 "$ref": "Token" |
874 }, | 890 }, |
875 "type": "array" | 891 "type": "array" |
| 892 }, |
| 893 "entities": { |
| 894 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", |
| 895 "items": { |
| 896 "$ref": "Entity" |
| 897 }, |
| 898 "type": "array" |
| 899 }, |
| 900 "documentSentiment": { |
| 901 "$ref": "Sentiment", |
| 902 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." |
876 } | 903 } |
877 }, | 904 }, |
878 "type": "object" | 905 "type": "object" |
879 }, | |
880 "AnalyzeSentimentRequest": { | |
881 "description": "The sentiment analysis request message.", | |
882 "id": "AnalyzeSentimentRequest", | |
883 "properties": { | |
884 "encodingType": { | |
885 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", | |
886 "enum": [ | |
887 "NONE", | |
888 "UTF8", | |
889 "UTF16", | |
890 "UTF32" | |
891 ], | |
892 "enumDescriptions": [ | |
893 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | |
894 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | |
895 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | |
896 "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." | |
897 ], | |
898 "type": "string" | |
899 }, | |
900 "document": { | |
901 "$ref": "Document", | |
902 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." | |
903 } | |
904 }, | |
905 "type": "object" | |
906 }, | 906 }, |
907 "DependencyEdge": { | 907 "DependencyEdge": { |
908 "description": "Represents dependency parse tree information for a t
oken.", | 908 "description": "Represents dependency parse tree information for a t
oken.", |
909 "id": "DependencyEdge", | 909 "id": "DependencyEdge", |
910 "properties": { | 910 "properties": { |
911 "headTokenIndex": { | 911 "headTokenIndex": { |
912 "description": "Represents the head of this token in the dep
endency tree.\nThis is the index of the token which has an arc going to this tok
en.\nThe index is the position of the token in the array of tokens returned\nby
the API method. If this token is a root token, then the\n`head_token_index` is i
ts own index.", | 912 "description": "Represents the head of this token in the dep
endency tree.\nThis is the index of the token which has an arc going to this tok
en.\nThe index is the position of the token in the array of tokens returned\nby
the API method. If this token is a root token, then the\n`head_token_index` is i
ts own index.", |
913 "format": "int32", | 913 "format": "int32", |
914 "type": "integer" | 914 "type": "integer" |
915 }, | 915 }, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 "type": "string" | 1076 "type": "string" |
1077 } | 1077 } |
1078 }, | 1078 }, |
1079 "type": "object" | 1079 "type": "object" |
1080 } | 1080 } |
1081 }, | 1081 }, |
1082 "servicePath": "", | 1082 "servicePath": "", |
1083 "title": "Google Cloud Natural Language API", | 1083 "title": "Google Cloud Natural Language API", |
1084 "version": "v1beta1" | 1084 "version": "v1beta1" |
1085 } | 1085 } |
OLD | NEW |