OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/cloud-language": { |
| 6 "description": "Apply machine learning models to reveal the
structure and meaning of text" |
| 7 }, |
5 "https://www.googleapis.com/auth/cloud-platform": { | 8 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 9 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | |
8 "https://www.googleapis.com/auth/cloud-language": { | |
9 "description": "Apply machine learning models to reveal the
structure and meaning of text" | |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "", | 14 "basePath": "", |
15 "baseUrl": "https://language.googleapis.com/", | 15 "baseUrl": "https://language.googleapis.com/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
17 "canonicalName": "Cloud Natural Language", | 17 "canonicalName": "Cloud Natural Language", |
18 "description": "Provides natural language understanding technologies to deve
lopers. Examples include sentiment analysis, entity recognition, entity sentimen
t analysis, and text annotations.", | 18 "description": "Provides natural language understanding technologies to deve
lopers. Examples include sentiment analysis, entity recognition, entity sentimen
t analysis, and text annotations.", |
19 "discoveryVersion": "v1", | 19 "discoveryVersion": "v1", |
20 "documentationLink": "https://cloud.google.com/natural-language/", | 20 "documentationLink": "https://cloud.google.com/natural-language/", |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "language:v1beta1", | 25 "id": "language:v1beta1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "name": "language", | 27 "name": "language", |
28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
29 "ownerName": "Google", | 29 "ownerName": "Google", |
30 "parameters": { | 30 "parameters": { |
31 "upload_protocol": { | |
32 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
33 "location": "query", | |
34 "type": "string" | |
35 }, | |
36 "prettyPrint": { | |
37 "default": "true", | |
38 "description": "Returns response with indentations and line breaks."
, | |
39 "location": "query", | |
40 "type": "boolean" | |
41 }, | |
42 "uploadType": { | |
43 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
44 "location": "query", | |
45 "type": "string" | |
46 }, | |
47 "fields": { | |
48 "description": "Selector specifying which fields to include in a par
tial response.", | |
49 "location": "query", | |
50 "type": "string" | |
51 }, | |
52 "$.xgafv": { | |
53 "description": "V1 error format.", | |
54 "enum": [ | |
55 "1", | |
56 "2" | |
57 ], | |
58 "enumDescriptions": [ | |
59 "v1 error format", | |
60 "v2 error format" | |
61 ], | |
62 "location": "query", | |
63 "type": "string" | |
64 }, | |
65 "callback": { | |
66 "description": "JSONP", | |
67 "location": "query", | |
68 "type": "string" | |
69 }, | |
70 "alt": { | 31 "alt": { |
71 "default": "json", | 32 "default": "json", |
72 "description": "Data format for response.", | 33 "description": "Data format for response.", |
73 "enum": [ | 34 "enum": [ |
74 "json", | 35 "json", |
75 "media", | 36 "media", |
76 "proto" | 37 "proto" |
77 ], | 38 ], |
78 "enumDescriptions": [ | 39 "enumDescriptions": [ |
79 "Responses with Content-Type of application/json", | 40 "Responses with Content-Type of application/json", |
(...skipping 26 matching lines...) Expand all Loading... |
106 }, | 67 }, |
107 "bearer_token": { | 68 "bearer_token": { |
108 "description": "OAuth bearer token.", | 69 "description": "OAuth bearer token.", |
109 "location": "query", | 70 "location": "query", |
110 "type": "string" | 71 "type": "string" |
111 }, | 72 }, |
112 "oauth_token": { | 73 "oauth_token": { |
113 "description": "OAuth 2.0 token for the current user.", | 74 "description": "OAuth 2.0 token for the current user.", |
114 "location": "query", | 75 "location": "query", |
115 "type": "string" | 76 "type": "string" |
| 77 }, |
| 78 "upload_protocol": { |
| 79 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 80 "location": "query", |
| 81 "type": "string" |
| 82 }, |
| 83 "prettyPrint": { |
| 84 "default": "true", |
| 85 "description": "Returns response with indentations and line breaks."
, |
| 86 "location": "query", |
| 87 "type": "boolean" |
| 88 }, |
| 89 "uploadType": { |
| 90 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
| 94 "fields": { |
| 95 "description": "Selector specifying which fields to include in a par
tial response.", |
| 96 "location": "query", |
| 97 "type": "string" |
| 98 }, |
| 99 "$.xgafv": { |
| 100 "description": "V1 error format.", |
| 101 "enum": [ |
| 102 "1", |
| 103 "2" |
| 104 ], |
| 105 "enumDescriptions": [ |
| 106 "v1 error format", |
| 107 "v2 error format" |
| 108 ], |
| 109 "location": "query", |
| 110 "type": "string" |
| 111 }, |
| 112 "callback": { |
| 113 "description": "JSONP", |
| 114 "location": "query", |
| 115 "type": "string" |
116 } | 116 } |
117 }, | 117 }, |
118 "protocol": "rest", | 118 "protocol": "rest", |
119 "resources": { | 119 "resources": { |
120 "documents": { | 120 "documents": { |
121 "methods": { | 121 "methods": { |
| 122 "analyzeEntities": { |
| 123 "description": "Finds named entities (currently proper names
and common nouns) in the text\nalong with entity types, salience, mentions for
each entity, and\nother properties.", |
| 124 "httpMethod": "POST", |
| 125 "id": "language.documents.analyzeEntities", |
| 126 "parameterOrder": [], |
| 127 "parameters": {}, |
| 128 "path": "v1beta1/documents:analyzeEntities", |
| 129 "request": { |
| 130 "$ref": "AnalyzeEntitiesRequest" |
| 131 }, |
| 132 "response": { |
| 133 "$ref": "AnalyzeEntitiesResponse" |
| 134 }, |
| 135 "scopes": [ |
| 136 "https://www.googleapis.com/auth/cloud-language", |
| 137 "https://www.googleapis.com/auth/cloud-platform" |
| 138 ] |
| 139 }, |
122 "analyzeSyntax": { | 140 "analyzeSyntax": { |
123 "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.", | 141 "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.", |
124 "httpMethod": "POST", | 142 "httpMethod": "POST", |
125 "id": "language.documents.analyzeSyntax", | 143 "id": "language.documents.analyzeSyntax", |
126 "parameterOrder": [], | 144 "parameterOrder": [], |
127 "parameters": {}, | 145 "parameters": {}, |
128 "path": "v1beta1/documents:analyzeSyntax", | 146 "path": "v1beta1/documents:analyzeSyntax", |
129 "request": { | 147 "request": { |
130 "$ref": "AnalyzeSyntaxRequest" | 148 "$ref": "AnalyzeSyntaxRequest" |
131 }, | 149 }, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 "request": { | 183 "request": { |
166 "$ref": "AnnotateTextRequest" | 184 "$ref": "AnnotateTextRequest" |
167 }, | 185 }, |
168 "response": { | 186 "response": { |
169 "$ref": "AnnotateTextResponse" | 187 "$ref": "AnnotateTextResponse" |
170 }, | 188 }, |
171 "scopes": [ | 189 "scopes": [ |
172 "https://www.googleapis.com/auth/cloud-language", | 190 "https://www.googleapis.com/auth/cloud-language", |
173 "https://www.googleapis.com/auth/cloud-platform" | 191 "https://www.googleapis.com/auth/cloud-platform" |
174 ] | 192 ] |
175 }, | |
176 "analyzeEntities": { | |
177 "description": "Finds named entities (currently proper names
and common nouns) in the text\nalong with entity types, salience, mentions for
each entity, and\nother properties.", | |
178 "httpMethod": "POST", | |
179 "id": "language.documents.analyzeEntities", | |
180 "parameterOrder": [], | |
181 "parameters": {}, | |
182 "path": "v1beta1/documents:analyzeEntities", | |
183 "request": { | |
184 "$ref": "AnalyzeEntitiesRequest" | |
185 }, | |
186 "response": { | |
187 "$ref": "AnalyzeEntitiesResponse" | |
188 }, | |
189 "scopes": [ | |
190 "https://www.googleapis.com/auth/cloud-language", | |
191 "https://www.googleapis.com/auth/cloud-platform" | |
192 ] | |
193 } | 193 } |
194 } | 194 } |
195 } | 195 } |
196 }, | 196 }, |
197 "revision": "20170726", | 197 "revision": "20170809", |
198 "rootUrl": "https://language.googleapis.com/", | 198 "rootUrl": "https://language.googleapis.com/", |
199 "schemas": { | 199 "schemas": { |
| 200 "Entity": { |
| 201 "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.", |
| 202 "id": "Entity", |
| 203 "properties": { |
| 204 "salience": { |
| 205 "description": "The salience score associated with the entit
y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio
n about the\nimportance or centrality of that entity to the entire document text
.\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns
alient.", |
| 206 "format": "float", |
| 207 "type": "number" |
| 208 }, |
| 209 "metadata": { |
| 210 "additionalProperties": { |
| 211 "type": "string" |
| 212 }, |
| 213 "description": "Metadata associated with the entity.\n\nCurr
ently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The
associated keys are \"wikipedia_url\" and \"mid\", respectively.", |
| 214 "type": "object" |
| 215 }, |
| 216 "type": { |
| 217 "description": "The entity type.", |
| 218 "enum": [ |
| 219 "UNKNOWN", |
| 220 "PERSON", |
| 221 "LOCATION", |
| 222 "ORGANIZATION", |
| 223 "EVENT", |
| 224 "WORK_OF_ART", |
| 225 "CONSUMER_GOOD", |
| 226 "OTHER" |
| 227 ], |
| 228 "enumDescriptions": [ |
| 229 "Unknown", |
| 230 "Person", |
| 231 "Location", |
| 232 "Organization", |
| 233 "Event", |
| 234 "Work of art", |
| 235 "Consumer goods", |
| 236 "Other types" |
| 237 ], |
| 238 "type": "string" |
| 239 }, |
| 240 "mentions": { |
| 241 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", |
| 242 "items": { |
| 243 "$ref": "EntityMention" |
| 244 }, |
| 245 "type": "array" |
| 246 }, |
| 247 "name": { |
| 248 "description": "The representative name for the entity.", |
| 249 "type": "string" |
| 250 } |
| 251 }, |
| 252 "type": "object" |
| 253 }, |
| 254 "AnalyzeSyntaxResponse": { |
| 255 "description": "The syntax analysis response message.", |
| 256 "id": "AnalyzeSyntaxResponse", |
| 257 "properties": { |
| 258 "language": { |
| 259 "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.", |
| 260 "type": "string" |
| 261 }, |
| 262 "sentences": { |
| 263 "description": "Sentences in the input document.", |
| 264 "items": { |
| 265 "$ref": "Sentence" |
| 266 }, |
| 267 "type": "array" |
| 268 }, |
| 269 "tokens": { |
| 270 "description": "Tokens, along with their syntactic informati
on, in the input document.", |
| 271 "items": { |
| 272 "$ref": "Token" |
| 273 }, |
| 274 "type": "array" |
| 275 } |
| 276 }, |
| 277 "type": "object" |
| 278 }, |
200 "AnnotateTextRequest": { | 279 "AnnotateTextRequest": { |
201 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 280 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
202 "id": "AnnotateTextRequest", | 281 "id": "AnnotateTextRequest", |
203 "properties": { | 282 "properties": { |
204 "encodingType": { | 283 "encodingType": { |
205 "description": "The encoding type used by the API to calcula
te offsets.", | 284 "description": "The encoding type used by the API to calcula
te offsets.", |
206 "enum": [ | 285 "enum": [ |
207 "NONE", | 286 "NONE", |
208 "UTF8", | 287 "UTF8", |
209 "UTF16", | 288 "UTF16", |
(...skipping 10 matching lines...) Expand all Loading... |
220 "document": { | 299 "document": { |
221 "$ref": "Document", | 300 "$ref": "Document", |
222 "description": "Input document." | 301 "description": "Input document." |
223 }, | 302 }, |
224 "features": { | 303 "features": { |
225 "$ref": "Features", | 304 "$ref": "Features", |
226 "description": "The enabled features." | 305 "description": "The enabled features." |
227 } | 306 } |
228 }, | 307 }, |
229 "type": "object" | 308 "type": "object" |
230 }, | |
231 "AnnotateTextResponse": { | |
232 "description": "The text annotations response message.", | |
233 "id": "AnnotateTextResponse", | |
234 "properties": { | |
235 "documentSentiment": { | |
236 "$ref": "Sentiment", | |
237 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." | |
238 }, | |
239 "language": { | |
240 "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.", | |
241 "type": "string" | |
242 }, | |
243 "sentences": { | |
244 "description": "Sentences in the input document. Populated i
f the user enables\nAnnotateTextRequest.Features.extract_syntax.", | |
245 "items": { | |
246 "$ref": "Sentence" | |
247 }, | |
248 "type": "array" | |
249 }, | |
250 "tokens": { | |
251 "description": "Tokens, along with their syntactic informati
on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F
eatures.extract_syntax.", | |
252 "items": { | |
253 "$ref": "Token" | |
254 }, | |
255 "type": "array" | |
256 }, | |
257 "entities": { | |
258 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", | |
259 "items": { | |
260 "$ref": "Entity" | |
261 }, | |
262 "type": "array" | |
263 } | |
264 }, | |
265 "type": "object" | |
266 }, | 309 }, |
267 "AnalyzeSentimentRequest": { | 310 "AnalyzeSentimentRequest": { |
268 "description": "The sentiment analysis request message.", | 311 "description": "The sentiment analysis request message.", |
269 "id": "AnalyzeSentimentRequest", | 312 "id": "AnalyzeSentimentRequest", |
270 "properties": { | 313 "properties": { |
271 "encodingType": { | 314 "encodingType": { |
272 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", | 315 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", |
273 "enum": [ | 316 "enum": [ |
274 "NONE", | 317 "NONE", |
275 "UTF8", | 318 "UTF8", |
276 "UTF16", | 319 "UTF16", |
277 "UTF32" | 320 "UTF32" |
278 ], | 321 ], |
279 "enumDescriptions": [ | 322 "enumDescriptions": [ |
280 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | 323 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
281 "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.", | 324 "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.", |
282 "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.", | 325 "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.", |
283 "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." | 326 "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." |
284 ], | 327 ], |
285 "type": "string" | 328 "type": "string" |
286 }, | 329 }, |
287 "document": { | 330 "document": { |
288 "$ref": "Document", | 331 "$ref": "Document", |
289 "description": "Input document." | 332 "description": "Input document." |
290 } | 333 } |
291 }, | 334 }, |
292 "type": "object" | 335 "type": "object" |
293 }, | 336 }, |
| 337 "AnnotateTextResponse": { |
| 338 "description": "The text annotations response message.", |
| 339 "id": "AnnotateTextResponse", |
| 340 "properties": { |
| 341 "entities": { |
| 342 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", |
| 343 "items": { |
| 344 "$ref": "Entity" |
| 345 }, |
| 346 "type": "array" |
| 347 }, |
| 348 "documentSentiment": { |
| 349 "$ref": "Sentiment", |
| 350 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." |
| 351 }, |
| 352 "language": { |
| 353 "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.", |
| 354 "type": "string" |
| 355 }, |
| 356 "sentences": { |
| 357 "description": "Sentences in the input document. Populated i
f the user enables\nAnnotateTextRequest.Features.extract_syntax.", |
| 358 "items": { |
| 359 "$ref": "Sentence" |
| 360 }, |
| 361 "type": "array" |
| 362 }, |
| 363 "tokens": { |
| 364 "description": "Tokens, along with their syntactic informati
on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F
eatures.extract_syntax.", |
| 365 "items": { |
| 366 "$ref": "Token" |
| 367 }, |
| 368 "type": "array" |
| 369 } |
| 370 }, |
| 371 "type": "object" |
| 372 }, |
294 "DependencyEdge": { | 373 "DependencyEdge": { |
295 "description": "Represents dependency parse tree information for a t
oken.", | 374 "description": "Represents dependency parse tree information for a t
oken.", |
296 "id": "DependencyEdge", | 375 "id": "DependencyEdge", |
297 "properties": { | 376 "properties": { |
298 "headTokenIndex": { | |
299 "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.", | |
300 "format": "int32", | |
301 "type": "integer" | |
302 }, | |
303 "label": { | 377 "label": { |
304 "description": "The parse label for the token.", | 378 "description": "The parse label for the token.", |
305 "enum": [ | 379 "enum": [ |
306 "UNKNOWN", | 380 "UNKNOWN", |
307 "ABBREV", | 381 "ABBREV", |
308 "ACOMP", | 382 "ACOMP", |
309 "ADVCL", | 383 "ADVCL", |
310 "ADVMOD", | 384 "ADVMOD", |
311 "AMOD", | 385 "AMOD", |
312 "APPOS", | 386 "APPOS", |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 "Keyword", | 528 "Keyword", |
455 "List for chains of comparable items", | 529 "List for chains of comparable items", |
456 "Nominalized clause", | 530 "Nominalized clause", |
457 "Nominalized clausal subject", | 531 "Nominalized clausal subject", |
458 "Nominalized clausal passive", | 532 "Nominalized clausal passive", |
459 "Compound of numeric modifier", | 533 "Compound of numeric modifier", |
460 "Copula", | 534 "Copula", |
461 "Dislocated relation (for fronted/topicalized elements)" | 535 "Dislocated relation (for fronted/topicalized elements)" |
462 ], | 536 ], |
463 "type": "string" | 537 "type": "string" |
| 538 }, |
| 539 "headTokenIndex": { |
| 540 "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.", |
| 541 "format": "int32", |
| 542 "type": "integer" |
464 } | 543 } |
465 }, | 544 }, |
466 "type": "object" | 545 "type": "object" |
467 }, | |
468 "TextSpan": { | |
469 "description": "Represents an output piece of text.", | |
470 "id": "TextSpan", | |
471 "properties": { | |
472 "beginOffset": { | |
473 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", | |
474 "format": "int32", | |
475 "type": "integer" | |
476 }, | |
477 "content": { | |
478 "description": "The content of the output text.", | |
479 "type": "string" | |
480 } | |
481 }, | |
482 "type": "object" | |
483 }, | 546 }, |
484 "Token": { | 547 "Token": { |
485 "description": "Represents the smallest syntactic building block of
the text.", | 548 "description": "Represents the smallest syntactic building block of
the text.", |
486 "id": "Token", | 549 "id": "Token", |
487 "properties": { | 550 "properties": { |
| 551 "partOfSpeech": { |
| 552 "$ref": "PartOfSpeech", |
| 553 "description": "Parts of speech tag for this token." |
| 554 }, |
488 "dependencyEdge": { | 555 "dependencyEdge": { |
489 "$ref": "DependencyEdge", | 556 "$ref": "DependencyEdge", |
490 "description": "Dependency tree parse for this token." | 557 "description": "Dependency tree parse for this token." |
491 }, | 558 }, |
492 "text": { | 559 "text": { |
493 "$ref": "TextSpan", | 560 "$ref": "TextSpan", |
494 "description": "The token text." | 561 "description": "The token text." |
495 }, | 562 }, |
496 "lemma": { | 563 "lemma": { |
497 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", | 564 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
498 "type": "string" | 565 "type": "string" |
499 }, | |
500 "partOfSpeech": { | |
501 "$ref": "PartOfSpeech", | |
502 "description": "Parts of speech tag for this token." | |
503 } | 566 } |
504 }, | 567 }, |
505 "type": "object" | 568 "type": "object" |
| 569 }, |
| 570 "TextSpan": { |
| 571 "description": "Represents an output piece of text.", |
| 572 "id": "TextSpan", |
| 573 "properties": { |
| 574 "beginOffset": { |
| 575 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", |
| 576 "format": "int32", |
| 577 "type": "integer" |
| 578 }, |
| 579 "content": { |
| 580 "description": "The content of the output text.", |
| 581 "type": "string" |
| 582 } |
| 583 }, |
| 584 "type": "object" |
506 }, | 585 }, |
507 "Status": { | 586 "Status": { |
508 "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` that can be used for common error conditions.\n\n# Lang
uage 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` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\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\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
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 m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | 587 "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` that can be used for common error conditions.\n\n# Lang
uage 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` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\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\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
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 m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
509 "id": "Status", | 588 "id": "Status", |
510 "properties": { | 589 "properties": { |
511 "code": { | |
512 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
513 "format": "int32", | |
514 "type": "integer" | |
515 }, | |
516 "message": { | 590 "message": { |
517 "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.", | 591 "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.", |
518 "type": "string" | 592 "type": "string" |
519 }, | 593 }, |
520 "details": { | 594 "details": { |
521 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | 595 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
522 "items": { | 596 "items": { |
523 "additionalProperties": { | 597 "additionalProperties": { |
524 "description": "Properties of the object. Contains f
ield @type with type URL.", | 598 "description": "Properties of the object. Contains f
ield @type with type URL.", |
525 "type": "any" | 599 "type": "any" |
526 }, | 600 }, |
527 "type": "object" | 601 "type": "object" |
528 }, | 602 }, |
529 "type": "array" | 603 "type": "array" |
| 604 }, |
| 605 "code": { |
| 606 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 607 "format": "int32", |
| 608 "type": "integer" |
530 } | 609 } |
531 }, | 610 }, |
532 "type": "object" | 611 "type": "object" |
533 }, | 612 }, |
534 "Features": { | 613 "Features": { |
535 "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.", | 614 "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.", |
536 "id": "Features", | 615 "id": "Features", |
537 "properties": { | 616 "properties": { |
538 "extractEntities": { | 617 "extractEntities": { |
539 "description": "Extract entities.", | 618 "description": "Extract entities.", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 "$ref": "Sentiment", | 666 "$ref": "Sentiment", |
588 "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." | 667 "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." |
589 } | 668 } |
590 }, | 669 }, |
591 "type": "object" | 670 "type": "object" |
592 }, | 671 }, |
593 "Document": { | 672 "Document": { |
594 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | 673 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
595 "id": "Document", | 674 "id": "Document", |
596 "properties": { | 675 "properties": { |
| 676 "gcsContentUri": { |
| 677 "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.", |
| 678 "type": "string" |
| 679 }, |
| 680 "language": { |
| 681 "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.", |
| 682 "type": "string" |
| 683 }, |
597 "content": { | 684 "content": { |
598 "description": "The content of the input in string format.", | 685 "description": "The content of the input in string format.", |
599 "type": "string" | 686 "type": "string" |
600 }, | 687 }, |
601 "type": { | 688 "type": { |
602 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | 689 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
603 "enum": [ | 690 "enum": [ |
604 "TYPE_UNSPECIFIED", | 691 "TYPE_UNSPECIFIED", |
605 "PLAIN_TEXT", | 692 "PLAIN_TEXT", |
606 "HTML" | 693 "HTML" |
607 ], | 694 ], |
608 "enumDescriptions": [ | 695 "enumDescriptions": [ |
609 "The content type is not specified.", | 696 "The content type is not specified.", |
610 "Plain text", | 697 "Plain text", |
611 "HTML" | 698 "HTML" |
612 ], | 699 ], |
613 "type": "string" | 700 "type": "string" |
614 }, | |
615 "gcsContentUri": { | |
616 "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.", | |
617 "type": "string" | |
618 }, | |
619 "language": { | |
620 "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.", | |
621 "type": "string" | |
622 } | 701 } |
623 }, | 702 }, |
624 "type": "object" | 703 "type": "object" |
| 704 }, |
| 705 "AnalyzeEntitiesRequest": { |
| 706 "description": "The entity analysis request message.", |
| 707 "id": "AnalyzeEntitiesRequest", |
| 708 "properties": { |
| 709 "encodingType": { |
| 710 "description": "The encoding type used by the API to calcula
te offsets.", |
| 711 "enum": [ |
| 712 "NONE", |
| 713 "UTF8", |
| 714 "UTF16", |
| 715 "UTF32" |
| 716 ], |
| 717 "enumDescriptions": [ |
| 718 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 719 "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.", |
| 720 "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.", |
| 721 "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." |
| 722 ], |
| 723 "type": "string" |
| 724 }, |
| 725 "document": { |
| 726 "$ref": "Document", |
| 727 "description": "Input document." |
| 728 } |
| 729 }, |
| 730 "type": "object" |
625 }, | 731 }, |
626 "Sentiment": { | 732 "Sentiment": { |
627 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | 733 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
628 "id": "Sentiment", | 734 "id": "Sentiment", |
629 "properties": { | 735 "properties": { |
630 "score": { | 736 "score": { |
631 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", | 737 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
632 "format": "float", | 738 "format": "float", |
633 "type": "number" | 739 "type": "number" |
634 }, | 740 }, |
635 "polarity": { | 741 "polarity": { |
636 "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.", | 742 "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.", |
637 "format": "float", | 743 "format": "float", |
638 "type": "number" | 744 "type": "number" |
639 }, | 745 }, |
640 "magnitude": { | 746 "magnitude": { |
641 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", | 747 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", |
642 "format": "float", | 748 "format": "float", |
643 "type": "number" | 749 "type": "number" |
644 } | 750 } |
645 }, | 751 }, |
646 "type": "object" | 752 "type": "object" |
647 }, | 753 }, |
648 "AnalyzeEntitiesRequest": { | |
649 "description": "The entity analysis request message.", | |
650 "id": "AnalyzeEntitiesRequest", | |
651 "properties": { | |
652 "encodingType": { | |
653 "description": "The encoding type used by the API to calcula
te offsets.", | |
654 "enum": [ | |
655 "NONE", | |
656 "UTF8", | |
657 "UTF16", | |
658 "UTF32" | |
659 ], | |
660 "enumDescriptions": [ | |
661 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | |
662 "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.", | |
663 "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.", | |
664 "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." | |
665 ], | |
666 "type": "string" | |
667 }, | |
668 "document": { | |
669 "$ref": "Document", | |
670 "description": "Input document." | |
671 } | |
672 }, | |
673 "type": "object" | |
674 }, | |
675 "PartOfSpeech": { | 754 "PartOfSpeech": { |
676 "description": "Represents part of speech information for a token.", | 755 "description": "Represents part of speech information for a token.", |
677 "id": "PartOfSpeech", | 756 "id": "PartOfSpeech", |
678 "properties": { | 757 "properties": { |
| 758 "gender": { |
| 759 "description": "The grammatical gender.", |
| 760 "enum": [ |
| 761 "GENDER_UNKNOWN", |
| 762 "FEMININE", |
| 763 "MASCULINE", |
| 764 "NEUTER" |
| 765 ], |
| 766 "enumDescriptions": [ |
| 767 "Gender is not applicable in the analyzed language or is
not predicted.", |
| 768 "Feminine", |
| 769 "Masculine", |
| 770 "Neuter" |
| 771 ], |
| 772 "type": "string" |
| 773 }, |
| 774 "person": { |
| 775 "description": "The grammatical person.", |
| 776 "enum": [ |
| 777 "PERSON_UNKNOWN", |
| 778 "FIRST", |
| 779 "SECOND", |
| 780 "THIRD", |
| 781 "REFLEXIVE_PERSON" |
| 782 ], |
| 783 "enumDescriptions": [ |
| 784 "Person is not applicable in the analyzed language or is
not predicted.", |
| 785 "First", |
| 786 "Second", |
| 787 "Third", |
| 788 "Reflexive" |
| 789 ], |
| 790 "type": "string" |
| 791 }, |
| 792 "proper": { |
| 793 "description": "The grammatical properness.", |
| 794 "enum": [ |
| 795 "PROPER_UNKNOWN", |
| 796 "PROPER", |
| 797 "NOT_PROPER" |
| 798 ], |
| 799 "enumDescriptions": [ |
| 800 "Proper is not applicable in the analyzed language or is
not predicted.", |
| 801 "Proper", |
| 802 "Not proper" |
| 803 ], |
| 804 "type": "string" |
| 805 }, |
| 806 "case": { |
| 807 "description": "The grammatical case.", |
| 808 "enum": [ |
| 809 "CASE_UNKNOWN", |
| 810 "ACCUSATIVE", |
| 811 "ADVERBIAL", |
| 812 "COMPLEMENTIVE", |
| 813 "DATIVE", |
| 814 "GENITIVE", |
| 815 "INSTRUMENTAL", |
| 816 "LOCATIVE", |
| 817 "NOMINATIVE", |
| 818 "OBLIQUE", |
| 819 "PARTITIVE", |
| 820 "PREPOSITIONAL", |
| 821 "REFLEXIVE_CASE", |
| 822 "RELATIVE_CASE", |
| 823 "VOCATIVE" |
| 824 ], |
| 825 "enumDescriptions": [ |
| 826 "Case is not applicable in the analyzed language or is n
ot predicted.", |
| 827 "Accusative", |
| 828 "Adverbial", |
| 829 "Complementive", |
| 830 "Dative", |
| 831 "Genitive", |
| 832 "Instrumental", |
| 833 "Locative", |
| 834 "Nominative", |
| 835 "Oblique", |
| 836 "Partitive", |
| 837 "Prepositional", |
| 838 "Reflexive", |
| 839 "Relative", |
| 840 "Vocative" |
| 841 ], |
| 842 "type": "string" |
| 843 }, |
| 844 "tense": { |
| 845 "description": "The grammatical tense.", |
| 846 "enum": [ |
| 847 "TENSE_UNKNOWN", |
| 848 "CONDITIONAL_TENSE", |
| 849 "FUTURE", |
| 850 "PAST", |
| 851 "PRESENT", |
| 852 "IMPERFECT", |
| 853 "PLUPERFECT" |
| 854 ], |
| 855 "enumDescriptions": [ |
| 856 "Tense is not applicable in the analyzed language or is
not predicted.", |
| 857 "Conditional", |
| 858 "Future", |
| 859 "Past", |
| 860 "Present", |
| 861 "Imperfect", |
| 862 "Pluperfect" |
| 863 ], |
| 864 "type": "string" |
| 865 }, |
| 866 "reciprocity": { |
| 867 "description": "The grammatical reciprocity.", |
| 868 "enum": [ |
| 869 "RECIPROCITY_UNKNOWN", |
| 870 "RECIPROCAL", |
| 871 "NON_RECIPROCAL" |
| 872 ], |
| 873 "enumDescriptions": [ |
| 874 "Reciprocity is not applicable in the analyzed language
or is not\npredicted.", |
| 875 "Reciprocal", |
| 876 "Non-reciprocal" |
| 877 ], |
| 878 "type": "string" |
| 879 }, |
679 "form": { | 880 "form": { |
680 "description": "The grammatical form.", | 881 "description": "The grammatical form.", |
681 "enum": [ | 882 "enum": [ |
682 "FORM_UNKNOWN", | 883 "FORM_UNKNOWN", |
683 "ADNOMIAL", | 884 "ADNOMIAL", |
684 "AUXILIARY", | 885 "AUXILIARY", |
685 "COMPLEMENTIZER", | 886 "COMPLEMENTIZER", |
686 "FINAL_ENDING", | 887 "FINAL_ENDING", |
687 "GERUND", | 888 "GERUND", |
688 "REALIS", | 889 "REALIS", |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 "Noun (common and proper)", | 1007 "Noun (common and proper)", |
807 "Cardinal number", | 1008 "Cardinal number", |
808 "Pronoun", | 1009 "Pronoun", |
809 "Particle or other function word", | 1010 "Particle or other function word", |
810 "Punctuation", | 1011 "Punctuation", |
811 "Verb (all tenses and modes)", | 1012 "Verb (all tenses and modes)", |
812 "Other: foreign words, typos, abbreviations", | 1013 "Other: foreign words, typos, abbreviations", |
813 "Affix" | 1014 "Affix" |
814 ], | 1015 ], |
815 "type": "string" | 1016 "type": "string" |
816 }, | |
817 "gender": { | |
818 "description": "The grammatical gender.", | |
819 "enum": [ | |
820 "GENDER_UNKNOWN", | |
821 "FEMININE", | |
822 "MASCULINE", | |
823 "NEUTER" | |
824 ], | |
825 "enumDescriptions": [ | |
826 "Gender is not applicable in the analyzed language or is
not predicted.", | |
827 "Feminine", | |
828 "Masculine", | |
829 "Neuter" | |
830 ], | |
831 "type": "string" | |
832 }, | |
833 "person": { | |
834 "description": "The grammatical person.", | |
835 "enum": [ | |
836 "PERSON_UNKNOWN", | |
837 "FIRST", | |
838 "SECOND", | |
839 "THIRD", | |
840 "REFLEXIVE_PERSON" | |
841 ], | |
842 "enumDescriptions": [ | |
843 "Person is not applicable in the analyzed language or is
not predicted.", | |
844 "First", | |
845 "Second", | |
846 "Third", | |
847 "Reflexive" | |
848 ], | |
849 "type": "string" | |
850 }, | |
851 "proper": { | |
852 "description": "The grammatical properness.", | |
853 "enum": [ | |
854 "PROPER_UNKNOWN", | |
855 "PROPER", | |
856 "NOT_PROPER" | |
857 ], | |
858 "enumDescriptions": [ | |
859 "Proper is not applicable in the analyzed language or is
not predicted.", | |
860 "Proper", | |
861 "Not proper" | |
862 ], | |
863 "type": "string" | |
864 }, | |
865 "case": { | |
866 "description": "The grammatical case.", | |
867 "enum": [ | |
868 "CASE_UNKNOWN", | |
869 "ACCUSATIVE", | |
870 "ADVERBIAL", | |
871 "COMPLEMENTIVE", | |
872 "DATIVE", | |
873 "GENITIVE", | |
874 "INSTRUMENTAL", | |
875 "LOCATIVE", | |
876 "NOMINATIVE", | |
877 "OBLIQUE", | |
878 "PARTITIVE", | |
879 "PREPOSITIONAL", | |
880 "REFLEXIVE_CASE", | |
881 "RELATIVE_CASE", | |
882 "VOCATIVE" | |
883 ], | |
884 "enumDescriptions": [ | |
885 "Case is not applicable in the analyzed language or is n
ot predicted.", | |
886 "Accusative", | |
887 "Adverbial", | |
888 "Complementive", | |
889 "Dative", | |
890 "Genitive", | |
891 "Instrumental", | |
892 "Locative", | |
893 "Nominative", | |
894 "Oblique", | |
895 "Partitive", | |
896 "Prepositional", | |
897 "Reflexive", | |
898 "Relative", | |
899 "Vocative" | |
900 ], | |
901 "type": "string" | |
902 }, | |
903 "tense": { | |
904 "description": "The grammatical tense.", | |
905 "enum": [ | |
906 "TENSE_UNKNOWN", | |
907 "CONDITIONAL_TENSE", | |
908 "FUTURE", | |
909 "PAST", | |
910 "PRESENT", | |
911 "IMPERFECT", | |
912 "PLUPERFECT" | |
913 ], | |
914 "enumDescriptions": [ | |
915 "Tense is not applicable in the analyzed language or is
not predicted.", | |
916 "Conditional", | |
917 "Future", | |
918 "Past", | |
919 "Present", | |
920 "Imperfect", | |
921 "Pluperfect" | |
922 ], | |
923 "type": "string" | |
924 }, | |
925 "reciprocity": { | |
926 "description": "The grammatical reciprocity.", | |
927 "enum": [ | |
928 "RECIPROCITY_UNKNOWN", | |
929 "RECIPROCAL", | |
930 "NON_RECIPROCAL" | |
931 ], | |
932 "enumDescriptions": [ | |
933 "Reciprocity is not applicable in the analyzed language
or is not\npredicted.", | |
934 "Reciprocal", | |
935 "Non-reciprocal" | |
936 ], | |
937 "type": "string" | |
938 } | 1017 } |
939 }, | 1018 }, |
940 "type": "object" | 1019 "type": "object" |
941 }, | 1020 }, |
942 "AnalyzeSyntaxRequest": { | 1021 "AnalyzeSyntaxRequest": { |
943 "description": "The syntax analysis request message.", | 1022 "description": "The syntax analysis request message.", |
944 "id": "AnalyzeSyntaxRequest", | 1023 "id": "AnalyzeSyntaxRequest", |
945 "properties": { | 1024 "properties": { |
946 "encodingType": { | 1025 "encodingType": { |
947 "description": "The encoding type used by the API to calcula
te offsets.", | 1026 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 15 matching lines...) Expand all Loading... |
963 "$ref": "Document", | 1042 "$ref": "Document", |
964 "description": "Input document." | 1043 "description": "Input document." |
965 } | 1044 } |
966 }, | 1045 }, |
967 "type": "object" | 1046 "type": "object" |
968 }, | 1047 }, |
969 "AnalyzeSentimentResponse": { | 1048 "AnalyzeSentimentResponse": { |
970 "description": "The sentiment analysis response message.", | 1049 "description": "The sentiment analysis response message.", |
971 "id": "AnalyzeSentimentResponse", | 1050 "id": "AnalyzeSentimentResponse", |
972 "properties": { | 1051 "properties": { |
| 1052 "language": { |
| 1053 "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.", |
| 1054 "type": "string" |
| 1055 }, |
973 "sentences": { | 1056 "sentences": { |
974 "description": "The sentiment for all the sentences in the d
ocument.", | 1057 "description": "The sentiment for all the sentences in the d
ocument.", |
975 "items": { | 1058 "items": { |
976 "$ref": "Sentence" | 1059 "$ref": "Sentence" |
977 }, | 1060 }, |
978 "type": "array" | 1061 "type": "array" |
979 }, | 1062 }, |
980 "documentSentiment": { | 1063 "documentSentiment": { |
981 "$ref": "Sentiment", | 1064 "$ref": "Sentiment", |
982 "description": "The overall sentiment of the input document.
" | 1065 "description": "The overall sentiment of the input document.
" |
983 }, | |
984 "language": { | |
985 "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.", | |
986 "type": "string" | |
987 } | 1066 } |
988 }, | 1067 }, |
989 "type": "object" | 1068 "type": "object" |
990 }, | 1069 }, |
991 "AnalyzeEntitiesResponse": { | 1070 "AnalyzeEntitiesResponse": { |
992 "description": "The entity analysis response message.", | 1071 "description": "The entity analysis response message.", |
993 "id": "AnalyzeEntitiesResponse", | 1072 "id": "AnalyzeEntitiesResponse", |
994 "properties": { | 1073 "properties": { |
995 "language": { | 1074 "language": { |
996 "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.", | 1075 "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.", |
997 "type": "string" | 1076 "type": "string" |
998 }, | 1077 }, |
999 "entities": { | 1078 "entities": { |
1000 "description": "The recognized entities in the input documen
t.", | 1079 "description": "The recognized entities in the input documen
t.", |
1001 "items": { | 1080 "items": { |
1002 "$ref": "Entity" | 1081 "$ref": "Entity" |
1003 }, | 1082 }, |
1004 "type": "array" | 1083 "type": "array" |
1005 } | 1084 } |
1006 }, | 1085 }, |
1007 "type": "object" | 1086 "type": "object" |
1008 }, | |
1009 "Entity": { | |
1010 "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.", | |
1011 "id": "Entity", | |
1012 "properties": { | |
1013 "mentions": { | |
1014 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", | |
1015 "items": { | |
1016 "$ref": "EntityMention" | |
1017 }, | |
1018 "type": "array" | |
1019 }, | |
1020 "name": { | |
1021 "description": "The representative name for the entity.", | |
1022 "type": "string" | |
1023 }, | |
1024 "salience": { | |
1025 "description": "The salience score associated with the entit
y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio
n about the\nimportance or centrality of that entity to the entire document text
.\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns
alient.", | |
1026 "format": "float", | |
1027 "type": "number" | |
1028 }, | |
1029 "metadata": { | |
1030 "additionalProperties": { | |
1031 "type": "string" | |
1032 }, | |
1033 "description": "Metadata associated with the entity.\n\nCurr
ently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The
associated keys are \"wikipedia_url\" and \"mid\", respectively.", | |
1034 "type": "object" | |
1035 }, | |
1036 "type": { | |
1037 "description": "The entity type.", | |
1038 "enum": [ | |
1039 "UNKNOWN", | |
1040 "PERSON", | |
1041 "LOCATION", | |
1042 "ORGANIZATION", | |
1043 "EVENT", | |
1044 "WORK_OF_ART", | |
1045 "CONSUMER_GOOD", | |
1046 "OTHER" | |
1047 ], | |
1048 "enumDescriptions": [ | |
1049 "Unknown", | |
1050 "Person", | |
1051 "Location", | |
1052 "Organization", | |
1053 "Event", | |
1054 "Work of art", | |
1055 "Consumer goods", | |
1056 "Other types" | |
1057 ], | |
1058 "type": "string" | |
1059 } | |
1060 }, | |
1061 "type": "object" | |
1062 }, | |
1063 "AnalyzeSyntaxResponse": { | |
1064 "description": "The syntax analysis response message.", | |
1065 "id": "AnalyzeSyntaxResponse", | |
1066 "properties": { | |
1067 "sentences": { | |
1068 "description": "Sentences in the input document.", | |
1069 "items": { | |
1070 "$ref": "Sentence" | |
1071 }, | |
1072 "type": "array" | |
1073 }, | |
1074 "tokens": { | |
1075 "description": "Tokens, along with their syntactic informati
on, in the input document.", | |
1076 "items": { | |
1077 "$ref": "Token" | |
1078 }, | |
1079 "type": "array" | |
1080 }, | |
1081 "language": { | |
1082 "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.", | |
1083 "type": "string" | |
1084 } | |
1085 }, | |
1086 "type": "object" | |
1087 } | 1087 } |
1088 }, | 1088 }, |
1089 "servicePath": "", | 1089 "servicePath": "", |
1090 "title": "Google Cloud Natural Language API", | 1090 "title": "Google Cloud Natural Language API", |
1091 "version": "v1beta1" | 1091 "version": "v1beta1" |
1092 } | 1092 } |
OLD | NEW |