Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: discovery/googleapis_beta/language__v1beta1.json

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://language.googleapis.com/", 12 "baseUrl": "https://language.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "canonicalName": "Cloud Natural Language", 14 "canonicalName": "Cloud Natural Language",
15 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, and text annotations.", 15 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, and text annotations.",
16 "discoveryVersion": "v1", 16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/natural-language/", 17 "documentationLink": "https://cloud.google.com/natural-language/",
18 "icons": { 18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", 19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" 20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 }, 21 },
22 "id": "language: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 "upload_protocol": {
29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
30 "location": "query",
31 "type": "string"
32 },
33 "prettyPrint": {
34 "default": "true",
35 "description": "Returns response with indentations and line breaks." ,
36 "location": "query",
37 "type": "boolean"
38 },
28 "fields": { 39 "fields": {
29 "description": "Selector specifying which fields to include in a par tial response.", 40 "description": "Selector specifying which fields to include in a par tial response.",
30 "location": "query", 41 "location": "query",
31 "type": "string" 42 "type": "string"
32 }, 43 },
33 "uploadType": { 44 "uploadType": {
34 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 45 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
35 "location": "query", 46 "location": "query",
36 "type": "string" 47 "type": "string"
37 }, 48 },
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 }, 103 },
93 "bearer_token": { 104 "bearer_token": {
94 "description": "OAuth bearer token.", 105 "description": "OAuth bearer token.",
95 "location": "query", 106 "location": "query",
96 "type": "string" 107 "type": "string"
97 }, 108 },
98 "oauth_token": { 109 "oauth_token": {
99 "description": "OAuth 2.0 token for the current user.", 110 "description": "OAuth 2.0 token for the current user.",
100 "location": "query", 111 "location": "query",
101 "type": "string" 112 "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": { 119 "analyzeEntities": {
120 "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.", 120 "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.",
121 "httpMethod": "POST", 121 "httpMethod": "POST",
122 "id": "language.documents.analyzeEntities", 122 "id": "language.documents.analyzeEntities",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 "response": { 180 "response": {
181 "$ref": "AnnotateTextResponse" 181 "$ref": "AnnotateTextResponse"
182 }, 182 },
183 "scopes": [ 183 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform" 184 "https://www.googleapis.com/auth/cloud-platform"
185 ] 185 ]
186 } 186 }
187 } 187 }
188 } 188 }
189 }, 189 },
190 "revision": "20170515", 190 "revision": "20170601",
191 "rootUrl": "https://language.googleapis.com/", 191 "rootUrl": "https://language.googleapis.com/",
192 "schemas": { 192 "schemas": {
193 "Status": { 193 "AnalyzeSentimentResponse": {
194 "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.", 194 "description": "The sentiment analysis response message.",
195 "id": "Status", 195 "id": "AnalyzeSentimentResponse",
196 "properties": { 196 "properties": {
197 "details": { 197 "language": {
198 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 198 "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.",
199 "type": "string"
200 },
201 "sentences": {
202 "description": "The sentiment for all the sentences in the d ocument.",
199 "items": { 203 "items": {
200 "additionalProperties": { 204 "$ref": "Sentence"
201 "description": "Properties of the object. Contains f ield @type with type URL.",
202 "type": "any"
203 },
204 "type": "object"
205 }, 205 },
206 "type": "array" 206 "type": "array"
207 }, 207 },
208 "code": { 208 "documentSentiment": {
209 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 209 "$ref": "Sentiment",
210 "format": "int32", 210 "description": "The overall sentiment of the input document. "
211 "type": "integer"
212 },
213 "message": {
214 "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.",
215 "type": "string"
216 } 211 }
217 }, 212 },
218 "type": "object" 213 "type": "object"
219 }, 214 },
220 "Features": { 215 "AnalyzeEntitiesResponse": {
221 "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.", 216 "description": "The entity analysis response message.",
222 "id": "Features", 217 "id": "AnalyzeEntitiesResponse",
223 "properties": { 218 "properties": {
224 "extractSyntax": { 219 "language": {
225 "description": "Extract syntax information.", 220 "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.",
226 "type": "boolean" 221 "type": "string"
227 }, 222 },
228 "extractDocumentSentiment": { 223 "entities": {
229 "description": "Extract document-level sentiment.", 224 "description": "The recognized entities in the input documen t.",
230 "type": "boolean" 225 "items": {
231 }, 226 "$ref": "Entity"
232 "extractEntities": { 227 },
233 "description": "Extract entities.", 228 "type": "array"
234 "type": "boolean"
235 } 229 }
236 }, 230 },
237 "type": "object" 231 "type": "object"
238 }, 232 },
239 "EntityMention": { 233 "Entity": {
240 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.", 234 "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.",
241 "id": "EntityMention", 235 "id": "Entity",
242 "properties": { 236 "properties": {
243 "text": { 237 "mentions": {
244 "$ref": "TextSpan", 238 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
245 "description": "The mention text." 239 "items": {
240 "$ref": "EntityMention"
241 },
242 "type": "array"
243 },
244 "name": {
245 "description": "The representative name for the entity.",
246 "type": "string"
246 }, 247 },
247 "type": { 248 "type": {
248 "description": "The type of the entity mention.", 249 "description": "The entity type.",
249 "enum": [ 250 "enum": [
250 "TYPE_UNKNOWN", 251 "UNKNOWN",
251 "PROPER", 252 "PERSON",
252 "COMMON" 253 "LOCATION",
254 "ORGANIZATION",
255 "EVENT",
256 "WORK_OF_ART",
257 "CONSUMER_GOOD",
258 "OTHER"
253 ], 259 ],
254 "enumDescriptions": [ 260 "enumDescriptions": [
255 "Unknown", 261 "Unknown",
256 "Proper name", 262 "Person",
257 "Common noun (or noun compound)" 263 "Location",
264 "Organization",
265 "Event",
266 "Work of art",
267 "Consumer goods",
268 "Other types"
258 ], 269 ],
259 "type": "string" 270 "type": "string"
271 },
272 "metadata": {
273 "additionalProperties": {
274 "type": "string"
275 },
276 "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.",
277 "type": "object"
278 },
279 "salience": {
280 "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.",
281 "format": "float",
282 "type": "number"
260 } 283 }
261 }, 284 },
262 "type": "object" 285 "type": "object"
263 }, 286 },
264 "Document": { 287 "AnalyzeSyntaxResponse": {
265 "description": "#################################################### ############ #\n\nRepresents the input to API methods.", 288 "description": "The syntax analysis response message.",
266 "id": "Document", 289 "id": "AnalyzeSyntaxResponse",
267 "properties": { 290 "properties": {
268 "language": { 291 "language": {
269 "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.", 292 "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.",
270 "type": "string" 293 "type": "string"
271 }, 294 },
272 "type": { 295 "sentences": {
273 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", 296 "description": "Sentences in the input document.",
274 "enum": [ 297 "items": {
275 "TYPE_UNSPECIFIED", 298 "$ref": "Sentence"
276 "PLAIN_TEXT", 299 },
277 "HTML" 300 "type": "array"
278 ],
279 "enumDescriptions": [
280 "The content type is not specified.",
281 "Plain text",
282 "HTML"
283 ],
284 "type": "string"
285 }, 301 },
286 "content": { 302 "tokens": {
287 "description": "The content of the input in string format.", 303 "description": "Tokens, along with their syntactic informati on, in the input document.",
288 "type": "string" 304 "items": {
289 }, 305 "$ref": "Token"
290 "gcsContentUri": { 306 },
291 "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.", 307 "type": "array"
292 "type": "string"
293 } 308 }
294 }, 309 },
295 "type": "object" 310 "type": "object"
296 }, 311 },
297 "Sentence": { 312 "AnnotateTextRequest": {
298 "description": "Represents a sentence in the input document.", 313 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
299 "id": "Sentence", 314 "id": "AnnotateTextRequest",
300 "properties": {
301 "text": {
302 "$ref": "TextSpan",
303 "description": "The sentence text."
304 },
305 "sentiment": {
306 "$ref": "Sentiment",
307 "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."
308 }
309 },
310 "type": "object"
311 },
312 "AnalyzeEntitiesRequest": {
313 "description": "The entity analysis request message.",
314 "id": "AnalyzeEntitiesRequest",
315 "properties": { 315 "properties": {
316 "encodingType": { 316 "encodingType": {
317 "description": "The encoding type used by the API to calcula te offsets.", 317 "description": "The encoding type used by the API to calcula te offsets.",
318 "enum": [ 318 "enum": [
319 "NONE", 319 "NONE",
320 "UTF8", 320 "UTF8",
321 "UTF16",
322 "UTF32"
323 ],
324 "enumDescriptions": [
325 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
326 "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.",
327 "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.",
328 "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."
329 ],
330 "type": "string"
331 },
332 "document": {
333 "$ref": "Document",
334 "description": "Input document."
335 },
336 "features": {
337 "$ref": "Features",
338 "description": "The enabled features."
339 }
340 },
341 "type": "object"
342 },
343 "AnalyzeSentimentRequest": {
344 "description": "The sentiment analysis request message.",
345 "id": "AnalyzeSentimentRequest",
346 "properties": {
347 "encodingType": {
348 "description": "The encoding type used by the API to calcula te sentence offsets for the\nsentence sentiment.",
349 "enum": [
350 "NONE",
351 "UTF8",
321 "UTF16", 352 "UTF16",
322 "UTF32" 353 "UTF32"
323 ], 354 ],
324 "enumDescriptions": [ 355 "enumDescriptions": [
325 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 356 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
326 "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.", 357 "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.",
327 "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.", 358 "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.",
328 "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." 359 "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."
329 ], 360 ],
330 "type": "string" 361 "type": "string"
331 }, 362 },
332 "document": { 363 "document": {
333 "$ref": "Document", 364 "$ref": "Document",
334 "description": "Input document." 365 "description": "Input document."
335 } 366 }
336 }, 367 },
337 "type": "object" 368 "type": "object"
338 }, 369 },
370 "AnnotateTextResponse": {
371 "description": "The text annotations response message.",
372 "id": "AnnotateTextResponse",
373 "properties": {
374 "entities": {
375 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
376 "items": {
377 "$ref": "Entity"
378 },
379 "type": "array"
380 },
381 "documentSentiment": {
382 "$ref": "Sentiment",
383 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
384 },
385 "language": {
386 "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.",
387 "type": "string"
388 },
389 "sentences": {
390 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
391 "items": {
392 "$ref": "Sentence"
393 },
394 "type": "array"
395 },
396 "tokens": {
397 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
398 "items": {
399 "$ref": "Token"
400 },
401 "type": "array"
402 }
403 },
404 "type": "object"
405 },
406 "DependencyEdge": {
407 "description": "Represents dependency parse tree information for a t oken.",
408 "id": "DependencyEdge",
409 "properties": {
410 "headTokenIndex": {
411 "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.",
412 "format": "int32",
413 "type": "integer"
414 },
415 "label": {
416 "description": "The parse label for the token.",
417 "enum": [
418 "UNKNOWN",
419 "ABBREV",
420 "ACOMP",
421 "ADVCL",
422 "ADVMOD",
423 "AMOD",
424 "APPOS",
425 "ATTR",
426 "AUX",
427 "AUXPASS",
428 "CC",
429 "CCOMP",
430 "CONJ",
431 "CSUBJ",
432 "CSUBJPASS",
433 "DEP",
434 "DET",
435 "DISCOURSE",
436 "DOBJ",
437 "EXPL",
438 "GOESWITH",
439 "IOBJ",
440 "MARK",
441 "MWE",
442 "MWV",
443 "NEG",
444 "NN",
445 "NPADVMOD",
446 "NSUBJ",
447 "NSUBJPASS",
448 "NUM",
449 "NUMBER",
450 "P",
451 "PARATAXIS",
452 "PARTMOD",
453 "PCOMP",
454 "POBJ",
455 "POSS",
456 "POSTNEG",
457 "PRECOMP",
458 "PRECONJ",
459 "PREDET",
460 "PREF",
461 "PREP",
462 "PRONL",
463 "PRT",
464 "PS",
465 "QUANTMOD",
466 "RCMOD",
467 "RCMODREL",
468 "RDROP",
469 "REF",
470 "REMNANT",
471 "REPARANDUM",
472 "ROOT",
473 "SNUM",
474 "SUFF",
475 "TMOD",
476 "TOPIC",
477 "VMOD",
478 "VOCATIVE",
479 "XCOMP",
480 "SUFFIX",
481 "TITLE",
482 "ADVPHMOD",
483 "AUXCAUS",
484 "AUXVV",
485 "DTMOD",
486 "FOREIGN",
487 "KW",
488 "LIST",
489 "NOMC",
490 "NOMCSUBJ",
491 "NOMCSUBJPASS",
492 "NUMC",
493 "COP",
494 "DISLOCATED"
495 ],
496 "enumDescriptions": [
497 "Unknown",
498 "Abbreviation modifier",
499 "Adjectival complement",
500 "Adverbial clause modifier",
501 "Adverbial modifier",
502 "Adjectival modifier of an NP",
503 "Appositional modifier of an NP",
504 "Attribute dependent of a copular verb",
505 "Auxiliary (non-main) verb",
506 "Passive auxiliary",
507 "Coordinating conjunction",
508 "Clausal complement of a verb or adjective",
509 "Conjunct",
510 "Clausal subject",
511 "Clausal passive subject",
512 "Dependency (unable to determine)",
513 "Determiner",
514 "Discourse",
515 "Direct object",
516 "Expletive",
517 "Goes with (part of a word in a text not well edited)",
518 "Indirect object",
519 "Marker (word introducing a subordinate clause)",
520 "Multi-word expression",
521 "Multi-word verbal expression",
522 "Negation modifier",
523 "Noun compound modifier",
524 "Noun phrase used as an adverbial modifier",
525 "Nominal subject",
526 "Passive nominal subject",
527 "Numeric modifier of a noun",
528 "Element of compound number",
529 "Punctuation mark",
530 "Parataxis relation",
531 "Participial modifier",
532 "The complement of a preposition is a clause",
533 "Object of a preposition",
534 "Possession modifier",
535 "Postverbal negative particle",
536 "Predicate complement",
537 "Preconjunt",
538 "Predeterminer",
539 "Prefix",
540 "Prepositional modifier",
541 "The relationship between a verb and verbal morpheme",
542 "Particle",
543 "Associative or possessive marker",
544 "Quantifier phrase modifier",
545 "Relative clause modifier",
546 "Complementizer in relative clause",
547 "Ellipsis without a preceding predicate",
548 "Referent",
549 "Remnant",
550 "Reparandum",
551 "Root",
552 "Suffix specifying a unit of number",
553 "Suffix",
554 "Temporal modifier",
555 "Topic marker",
556 "Clause headed by an infinite form of the verb that modi fies a noun",
557 "Vocative",
558 "Open clausal complement",
559 "Name suffix",
560 "Name title",
561 "Adverbial phrase modifier",
562 "Causative auxiliary",
563 "Helper auxiliary",
564 "Rentaishi (Prenominal modifier)",
565 "Foreign words",
566 "Keyword",
567 "List for chains of comparable items",
568 "Nominalized clause",
569 "Nominalized clausal subject",
570 "Nominalized clausal passive",
571 "Compound of numeric modifier",
572 "Copula",
573 "Dislocated relation (for fronted/topicalized elements)"
574 ],
575 "type": "string"
576 }
577 },
578 "type": "object"
579 },
580 "Token": {
581 "description": "Represents the smallest syntactic building block of the text.",
582 "id": "Token",
583 "properties": {
584 "partOfSpeech": {
585 "$ref": "PartOfSpeech",
586 "description": "Parts of speech tag for this token."
587 },
588 "text": {
589 "$ref": "TextSpan",
590 "description": "The token text."
591 },
592 "dependencyEdge": {
593 "$ref": "DependencyEdge",
594 "description": "Dependency tree parse for this token."
595 },
596 "lemma": {
597 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.",
598 "type": "string"
599 }
600 },
601 "type": "object"
602 },
603 "TextSpan": {
604 "description": "Represents an output piece of text.",
605 "id": "TextSpan",
606 "properties": {
607 "beginOffset": {
608 "description": "The API calculates the beginning offset of t he content in the original\ndocument according to the EncodingType specified in the API request.",
609 "format": "int32",
610 "type": "integer"
611 },
612 "content": {
613 "description": "The content of the output text.",
614 "type": "string"
615 }
616 },
617 "type": "object"
618 },
619 "Status": {
620 "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.",
621 "id": "Status",
622 "properties": {
623 "message": {
624 "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.",
625 "type": "string"
626 },
627 "details": {
628 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
629 "items": {
630 "additionalProperties": {
631 "description": "Properties of the object. Contains f ield @type with type URL.",
632 "type": "any"
633 },
634 "type": "object"
635 },
636 "type": "array"
637 },
638 "code": {
639 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
640 "format": "int32",
641 "type": "integer"
642 }
643 },
644 "type": "object"
645 },
646 "EntityMention": {
647 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.",
648 "id": "EntityMention",
649 "properties": {
650 "text": {
651 "$ref": "TextSpan",
652 "description": "The mention text."
653 },
654 "type": {
655 "description": "The type of the entity mention.",
656 "enum": [
657 "TYPE_UNKNOWN",
658 "PROPER",
659 "COMMON"
660 ],
661 "enumDescriptions": [
662 "Unknown",
663 "Proper name",
664 "Common noun (or noun compound)"
665 ],
666 "type": "string"
667 }
668 },
669 "type": "object"
670 },
671 "Features": {
672 "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.",
673 "id": "Features",
674 "properties": {
675 "extractSyntax": {
676 "description": "Extract syntax information.",
677 "type": "boolean"
678 },
679 "extractDocumentSentiment": {
680 "description": "Extract document-level sentiment.",
681 "type": "boolean"
682 },
683 "extractEntities": {
684 "description": "Extract entities.",
685 "type": "boolean"
686 }
687 },
688 "type": "object"
689 },
690 "Document": {
691 "description": "#################################################### ############ #\n\nRepresents the input to API methods.",
692 "id": "Document",
693 "properties": {
694 "language": {
695 "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.",
696 "type": "string"
697 },
698 "type": {
699 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
700 "enum": [
701 "TYPE_UNSPECIFIED",
702 "PLAIN_TEXT",
703 "HTML"
704 ],
705 "enumDescriptions": [
706 "The content type is not specified.",
707 "Plain text",
708 "HTML"
709 ],
710 "type": "string"
711 },
712 "content": {
713 "description": "The content of the input in string format.",
714 "type": "string"
715 },
716 "gcsContentUri": {
717 "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.",
718 "type": "string"
719 }
720 },
721 "type": "object"
722 },
723 "Sentence": {
724 "description": "Represents a sentence in the input document.",
725 "id": "Sentence",
726 "properties": {
727 "text": {
728 "$ref": "TextSpan",
729 "description": "The sentence text."
730 },
731 "sentiment": {
732 "$ref": "Sentiment",
733 "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."
734 }
735 },
736 "type": "object"
737 },
738 "AnalyzeEntitiesRequest": {
739 "description": "The entity analysis request message.",
740 "id": "AnalyzeEntitiesRequest",
741 "properties": {
742 "encodingType": {
743 "description": "The encoding type used by the API to calcula te offsets.",
744 "enum": [
745 "NONE",
746 "UTF8",
747 "UTF16",
748 "UTF32"
749 ],
750 "enumDescriptions": [
751 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
752 "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.",
753 "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.",
754 "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."
755 ],
756 "type": "string"
757 },
758 "document": {
759 "$ref": "Document",
760 "description": "Input document."
761 }
762 },
763 "type": "object"
764 },
339 "Sentiment": { 765 "Sentiment": {
340 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.", 766 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.",
341 "id": "Sentiment", 767 "id": "Sentiment",
342 "properties": { 768 "properties": {
343 "polarity": { 769 "polarity": {
344 "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.", 770 "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.",
345 "format": "float", 771 "format": "float",
346 "type": "number" 772 "type": "number"
347 }, 773 },
348 "score": { 774 "score": {
349 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).", 775 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).",
350 "format": "float", 776 "format": "float",
351 "type": "number" 777 "type": "number"
352 }, 778 },
353 "magnitude": { 779 "magnitude": {
354 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).", 780 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).",
355 "format": "float", 781 "format": "float",
356 "type": "number" 782 "type": "number"
357 } 783 }
358 }, 784 },
359 "type": "object" 785 "type": "object"
360 }, 786 },
361 "PartOfSpeech": { 787 "PartOfSpeech": {
362 "description": "Represents part of speech information for a token.", 788 "description": "Represents part of speech information for a token.",
363 "id": "PartOfSpeech", 789 "id": "PartOfSpeech",
364 "properties": { 790 "properties": {
365 "form": {
366 "description": "The grammatical form.",
367 "enum": [
368 "FORM_UNKNOWN",
369 "ADNOMIAL",
370 "AUXILIARY",
371 "COMPLEMENTIZER",
372 "FINAL_ENDING",
373 "GERUND",
374 "REALIS",
375 "IRREALIS",
376 "SHORT",
377 "LONG",
378 "ORDER",
379 "SPECIFIC"
380 ],
381 "enumDescriptions": [
382 "Form is not applicable in the analyzed language or is n ot predicted.",
383 "Adnomial",
384 "Auxiliary",
385 "Complementizer",
386 "Final ending",
387 "Gerund",
388 "Realis",
389 "Irrealis",
390 "Short form",
391 "Long form",
392 "Order form",
393 "Specific form"
394 ],
395 "type": "string"
396 },
397 "number": {
398 "description": "The grammatical number.",
399 "enum": [
400 "NUMBER_UNKNOWN",
401 "SINGULAR",
402 "PLURAL",
403 "DUAL"
404 ],
405 "enumDescriptions": [
406 "Number is not applicable in the analyzed language or is not predicted.",
407 "Singular",
408 "Plural",
409 "Dual"
410 ],
411 "type": "string"
412 },
413 "voice": {
414 "description": "The grammatical voice.",
415 "enum": [
416 "VOICE_UNKNOWN",
417 "ACTIVE",
418 "CAUSATIVE",
419 "PASSIVE"
420 ],
421 "enumDescriptions": [
422 "Voice is not applicable in the analyzed language or is not predicted.",
423 "Active",
424 "Causative",
425 "Passive"
426 ],
427 "type": "string"
428 },
429 "aspect": {
430 "description": "The grammatical aspect.",
431 "enum": [
432 "ASPECT_UNKNOWN",
433 "PERFECTIVE",
434 "IMPERFECTIVE",
435 "PROGRESSIVE"
436 ],
437 "enumDescriptions": [
438 "Aspect is not applicable in the analyzed language or is not predicted.",
439 "Perfective",
440 "Imperfective",
441 "Progressive"
442 ],
443 "type": "string"
444 },
445 "mood": { 791 "mood": {
446 "description": "The grammatical mood.", 792 "description": "The grammatical mood.",
447 "enum": [ 793 "enum": [
448 "MOOD_UNKNOWN", 794 "MOOD_UNKNOWN",
449 "CONDITIONAL_MOOD", 795 "CONDITIONAL_MOOD",
450 "IMPERATIVE", 796 "IMPERATIVE",
451 "INDICATIVE", 797 "INDICATIVE",
452 "INTERROGATIVE", 798 "INTERROGATIVE",
453 "JUSSIVE", 799 "JUSSIVE",
454 "SUBJUNCTIVE" 800 "SUBJUNCTIVE"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 "RECIPROCITY_UNKNOWN", 960 "RECIPROCITY_UNKNOWN",
615 "RECIPROCAL", 961 "RECIPROCAL",
616 "NON_RECIPROCAL" 962 "NON_RECIPROCAL"
617 ], 963 ],
618 "enumDescriptions": [ 964 "enumDescriptions": [
619 "Reciprocity is not applicable in the analyzed language or is not\npredicted.", 965 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
620 "Reciprocal", 966 "Reciprocal",
621 "Non-reciprocal" 967 "Non-reciprocal"
622 ], 968 ],
623 "type": "string" 969 "type": "string"
970 },
971 "form": {
972 "description": "The grammatical form.",
973 "enum": [
974 "FORM_UNKNOWN",
975 "ADNOMIAL",
976 "AUXILIARY",
977 "COMPLEMENTIZER",
978 "FINAL_ENDING",
979 "GERUND",
980 "REALIS",
981 "IRREALIS",
982 "SHORT",
983 "LONG",
984 "ORDER",
985 "SPECIFIC"
986 ],
987 "enumDescriptions": [
988 "Form is not applicable in the analyzed language or is n ot predicted.",
989 "Adnomial",
990 "Auxiliary",
991 "Complementizer",
992 "Final ending",
993 "Gerund",
994 "Realis",
995 "Irrealis",
996 "Short form",
997 "Long form",
998 "Order form",
999 "Specific form"
1000 ],
1001 "type": "string"
1002 },
1003 "number": {
1004 "description": "The grammatical number.",
1005 "enum": [
1006 "NUMBER_UNKNOWN",
1007 "SINGULAR",
1008 "PLURAL",
1009 "DUAL"
1010 ],
1011 "enumDescriptions": [
1012 "Number is not applicable in the analyzed language or is not predicted.",
1013 "Singular",
1014 "Plural",
1015 "Dual"
1016 ],
1017 "type": "string"
1018 },
1019 "voice": {
1020 "description": "The grammatical voice.",
1021 "enum": [
1022 "VOICE_UNKNOWN",
1023 "ACTIVE",
1024 "CAUSATIVE",
1025 "PASSIVE"
1026 ],
1027 "enumDescriptions": [
1028 "Voice is not applicable in the analyzed language or is not predicted.",
1029 "Active",
1030 "Causative",
1031 "Passive"
1032 ],
1033 "type": "string"
1034 },
1035 "aspect": {
1036 "description": "The grammatical aspect.",
1037 "enum": [
1038 "ASPECT_UNKNOWN",
1039 "PERFECTIVE",
1040 "IMPERFECTIVE",
1041 "PROGRESSIVE"
1042 ],
1043 "enumDescriptions": [
1044 "Aspect is not applicable in the analyzed language or is not predicted.",
1045 "Perfective",
1046 "Imperfective",
1047 "Progressive"
1048 ],
1049 "type": "string"
624 } 1050 }
625 }, 1051 },
626 "type": "object" 1052 "type": "object"
627 }, 1053 },
628 "AnalyzeSyntaxRequest": { 1054 "AnalyzeSyntaxRequest": {
629 "description": "The syntax analysis request message.", 1055 "description": "The syntax analysis request message.",
630 "id": "AnalyzeSyntaxRequest", 1056 "id": "AnalyzeSyntaxRequest",
631 "properties": { 1057 "properties": {
632 "encodingType": { 1058 "encodingType": {
633 "description": "The encoding type used by the API to calcula te offsets.", 1059 "description": "The encoding type used by the API to calcula te offsets.",
634 "enum": [ 1060 "enum": [
635 "NONE", 1061 "NONE",
636 "UTF8", 1062 "UTF8",
637 "UTF16",
638 "UTF32"
639 ],
640 "enumDescriptions": [
641 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
642 "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.",
643 "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.",
644 "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."
645 ],
646 "type": "string"
647 },
648 "document": {
649 "$ref": "Document",
650 "description": "Input document."
651 }
652 },
653 "type": "object"
654 },
655 "AnalyzeSentimentResponse": {
656 "description": "The sentiment analysis response message.",
657 "id": "AnalyzeSentimentResponse",
658 "properties": {
659 "language": {
660 "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.",
661 "type": "string"
662 },
663 "sentences": {
664 "description": "The sentiment for all the sentences in the d ocument.",
665 "items": {
666 "$ref": "Sentence"
667 },
668 "type": "array"
669 },
670 "documentSentiment": {
671 "$ref": "Sentiment",
672 "description": "The overall sentiment of the input document. "
673 }
674 },
675 "type": "object"
676 },
677 "AnalyzeEntitiesResponse": {
678 "description": "The entity analysis response message.",
679 "id": "AnalyzeEntitiesResponse",
680 "properties": {
681 "entities": {
682 "description": "The recognized entities in the input documen t.",
683 "items": {
684 "$ref": "Entity"
685 },
686 "type": "array"
687 },
688 "language": {
689 "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.",
690 "type": "string"
691 }
692 },
693 "type": "object"
694 },
695 "Entity": {
696 "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.",
697 "id": "Entity",
698 "properties": {
699 "mentions": {
700 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
701 "items": {
702 "$ref": "EntityMention"
703 },
704 "type": "array"
705 },
706 "name": {
707 "description": "The representative name for the entity.",
708 "type": "string"
709 },
710 "type": {
711 "description": "The entity type.",
712 "enum": [
713 "UNKNOWN",
714 "PERSON",
715 "LOCATION",
716 "ORGANIZATION",
717 "EVENT",
718 "WORK_OF_ART",
719 "CONSUMER_GOOD",
720 "OTHER"
721 ],
722 "enumDescriptions": [
723 "Unknown",
724 "Person",
725 "Location",
726 "Organization",
727 "Event",
728 "Work of art",
729 "Consumer goods",
730 "Other types"
731 ],
732 "type": "string"
733 },
734 "metadata": {
735 "additionalProperties": {
736 "type": "string"
737 },
738 "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.",
739 "type": "object"
740 },
741 "salience": {
742 "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.",
743 "format": "float",
744 "type": "number"
745 }
746 },
747 "type": "object"
748 },
749 "AnalyzeSyntaxResponse": {
750 "description": "The syntax analysis response message.",
751 "id": "AnalyzeSyntaxResponse",
752 "properties": {
753 "language": {
754 "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.",
755 "type": "string"
756 },
757 "sentences": {
758 "description": "Sentences in the input document.",
759 "items": {
760 "$ref": "Sentence"
761 },
762 "type": "array"
763 },
764 "tokens": {
765 "description": "Tokens, along with their syntactic informati on, in the input document.",
766 "items": {
767 "$ref": "Token"
768 },
769 "type": "array"
770 }
771 },
772 "type": "object"
773 },
774 "AnnotateTextRequest": {
775 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
776 "id": "AnnotateTextRequest",
777 "properties": {
778 "encodingType": {
779 "description": "The encoding type used by the API to calcula te offsets.",
780 "enum": [
781 "NONE",
782 "UTF8",
783 "UTF16",
784 "UTF32"
785 ],
786 "enumDescriptions": [
787 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
788 "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.",
789 "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.",
790 "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."
791 ],
792 "type": "string"
793 },
794 "document": {
795 "$ref": "Document",
796 "description": "Input document."
797 },
798 "features": {
799 "$ref": "Features",
800 "description": "The enabled features."
801 }
802 },
803 "type": "object"
804 },
805 "AnalyzeSentimentRequest": {
806 "description": "The sentiment analysis request message.",
807 "id": "AnalyzeSentimentRequest",
808 "properties": {
809 "encodingType": {
810 "description": "The encoding type used by the API to calcula te sentence offsets for the\nsentence sentiment.",
811 "enum": [
812 "NONE",
813 "UTF8",
814 "UTF16", 1063 "UTF16",
815 "UTF32" 1064 "UTF32"
816 ], 1065 ],
817 "enumDescriptions": [ 1066 "enumDescriptions": [
818 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 1067 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
819 "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.", 1068 "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.",
820 "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.", 1069 "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.",
821 "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." 1070 "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."
822 ], 1071 ],
823 "type": "string" 1072 "type": "string"
824 }, 1073 },
825 "document": { 1074 "document": {
826 "$ref": "Document", 1075 "$ref": "Document",
827 "description": "Input document." 1076 "description": "Input document."
828 } 1077 }
829 }, 1078 },
830 "type": "object" 1079 "type": "object"
831 },
832 "AnnotateTextResponse": {
833 "description": "The text annotations response message.",
834 "id": "AnnotateTextResponse",
835 "properties": {
836 "language": {
837 "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.",
838 "type": "string"
839 },
840 "sentences": {
841 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
842 "items": {
843 "$ref": "Sentence"
844 },
845 "type": "array"
846 },
847 "tokens": {
848 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
849 "items": {
850 "$ref": "Token"
851 },
852 "type": "array"
853 },
854 "entities": {
855 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
856 "items": {
857 "$ref": "Entity"
858 },
859 "type": "array"
860 },
861 "documentSentiment": {
862 "$ref": "Sentiment",
863 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
864 }
865 },
866 "type": "object"
867 },
868 "DependencyEdge": {
869 "description": "Represents dependency parse tree information for a t oken.",
870 "id": "DependencyEdge",
871 "properties": {
872 "headTokenIndex": {
873 "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.",
874 "format": "int32",
875 "type": "integer"
876 },
877 "label": {
878 "description": "The parse label for the token.",
879 "enum": [
880 "UNKNOWN",
881 "ABBREV",
882 "ACOMP",
883 "ADVCL",
884 "ADVMOD",
885 "AMOD",
886 "APPOS",
887 "ATTR",
888 "AUX",
889 "AUXPASS",
890 "CC",
891 "CCOMP",
892 "CONJ",
893 "CSUBJ",
894 "CSUBJPASS",
895 "DEP",
896 "DET",
897 "DISCOURSE",
898 "DOBJ",
899 "EXPL",
900 "GOESWITH",
901 "IOBJ",
902 "MARK",
903 "MWE",
904 "MWV",
905 "NEG",
906 "NN",
907 "NPADVMOD",
908 "NSUBJ",
909 "NSUBJPASS",
910 "NUM",
911 "NUMBER",
912 "P",
913 "PARATAXIS",
914 "PARTMOD",
915 "PCOMP",
916 "POBJ",
917 "POSS",
918 "POSTNEG",
919 "PRECOMP",
920 "PRECONJ",
921 "PREDET",
922 "PREF",
923 "PREP",
924 "PRONL",
925 "PRT",
926 "PS",
927 "QUANTMOD",
928 "RCMOD",
929 "RCMODREL",
930 "RDROP",
931 "REF",
932 "REMNANT",
933 "REPARANDUM",
934 "ROOT",
935 "SNUM",
936 "SUFF",
937 "TMOD",
938 "TOPIC",
939 "VMOD",
940 "VOCATIVE",
941 "XCOMP",
942 "SUFFIX",
943 "TITLE",
944 "ADVPHMOD",
945 "AUXCAUS",
946 "AUXVV",
947 "DTMOD",
948 "FOREIGN",
949 "KW",
950 "LIST",
951 "NOMC",
952 "NOMCSUBJ",
953 "NOMCSUBJPASS",
954 "NUMC",
955 "COP",
956 "DISLOCATED"
957 ],
958 "enumDescriptions": [
959 "Unknown",
960 "Abbreviation modifier",
961 "Adjectival complement",
962 "Adverbial clause modifier",
963 "Adverbial modifier",
964 "Adjectival modifier of an NP",
965 "Appositional modifier of an NP",
966 "Attribute dependent of a copular verb",
967 "Auxiliary (non-main) verb",
968 "Passive auxiliary",
969 "Coordinating conjunction",
970 "Clausal complement of a verb or adjective",
971 "Conjunct",
972 "Clausal subject",
973 "Clausal passive subject",
974 "Dependency (unable to determine)",
975 "Determiner",
976 "Discourse",
977 "Direct object",
978 "Expletive",
979 "Goes with (part of a word in a text not well edited)",
980 "Indirect object",
981 "Marker (word introducing a subordinate clause)",
982 "Multi-word expression",
983 "Multi-word verbal expression",
984 "Negation modifier",
985 "Noun compound modifier",
986 "Noun phrase used as an adverbial modifier",
987 "Nominal subject",
988 "Passive nominal subject",
989 "Numeric modifier of a noun",
990 "Element of compound number",
991 "Punctuation mark",
992 "Parataxis relation",
993 "Participial modifier",
994 "The complement of a preposition is a clause",
995 "Object of a preposition",
996 "Possession modifier",
997 "Postverbal negative particle",
998 "Predicate complement",
999 "Preconjunt",
1000 "Predeterminer",
1001 "Prefix",
1002 "Prepositional modifier",
1003 "The relationship between a verb and verbal morpheme",
1004 "Particle",
1005 "Associative or possessive marker",
1006 "Quantifier phrase modifier",
1007 "Relative clause modifier",
1008 "Complementizer in relative clause",
1009 "Ellipsis without a preceding predicate",
1010 "Referent",
1011 "Remnant",
1012 "Reparandum",
1013 "Root",
1014 "Suffix specifying a unit of number",
1015 "Suffix",
1016 "Temporal modifier",
1017 "Topic marker",
1018 "Clause headed by an infinite form of the verb that modi fies a noun",
1019 "Vocative",
1020 "Open clausal complement",
1021 "Name suffix",
1022 "Name title",
1023 "Adverbial phrase modifier",
1024 "Causative auxiliary",
1025 "Helper auxiliary",
1026 "Rentaishi (Prenominal modifier)",
1027 "Foreign words",
1028 "Keyword",
1029 "List for chains of comparable items",
1030 "Nominalized clause",
1031 "Nominalized clausal subject",
1032 "Nominalized clausal passive",
1033 "Compound of numeric modifier",
1034 "Copula",
1035 "Dislocated relation (for fronted/topicalized elements)"
1036 ],
1037 "type": "string"
1038 }
1039 },
1040 "type": "object"
1041 },
1042 "Token": {
1043 "description": "Represents the smallest syntactic building block of the text.",
1044 "id": "Token",
1045 "properties": {
1046 "lemma": {
1047 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.",
1048 "type": "string"
1049 },
1050 "partOfSpeech": {
1051 "$ref": "PartOfSpeech",
1052 "description": "Parts of speech tag for this token."
1053 },
1054 "text": {
1055 "$ref": "TextSpan",
1056 "description": "The token text."
1057 },
1058 "dependencyEdge": {
1059 "$ref": "DependencyEdge",
1060 "description": "Dependency tree parse for this token."
1061 }
1062 },
1063 "type": "object"
1064 },
1065 "TextSpan": {
1066 "description": "Represents an output piece of text.",
1067 "id": "TextSpan",
1068 "properties": {
1069 "beginOffset": {
1070 "description": "The API calculates the beginning offset of t he content in the original\ndocument according to the EncodingType specified in the API request.",
1071 "format": "int32",
1072 "type": "integer"
1073 },
1074 "content": {
1075 "description": "The content of the output text.",
1076 "type": "string"
1077 }
1078 },
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 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/dns__v2beta1.json ('k') | discovery/googleapis_beta/language__v1beta2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698