OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 "request": { | 126 "request": { |
127 "$ref": "AnalyzeSentimentRequest" | 127 "$ref": "AnalyzeSentimentRequest" |
128 }, | 128 }, |
129 "response": { | 129 "response": { |
130 "$ref": "AnalyzeSentimentResponse" | 130 "$ref": "AnalyzeSentimentResponse" |
131 }, | 131 }, |
132 "scopes": [ | 132 "scopes": [ |
133 "https://www.googleapis.com/auth/cloud-platform" | 133 "https://www.googleapis.com/auth/cloud-platform" |
134 ] | 134 ] |
135 }, | 135 }, |
| 136 "analyzeSyntax": { |
| 137 "description": "Analyzes the syntax of the text and provides
sentence boundaries and\ntokenization along with part of speech tags, dependenc
y trees, and other\nproperties.", |
| 138 "httpMethod": "POST", |
| 139 "id": "language.documents.analyzeSyntax", |
| 140 "parameterOrder": [], |
| 141 "parameters": {}, |
| 142 "path": "v1beta1/documents:analyzeSyntax", |
| 143 "request": { |
| 144 "$ref": "AnalyzeSyntaxRequest" |
| 145 }, |
| 146 "response": { |
| 147 "$ref": "AnalyzeSyntaxResponse" |
| 148 }, |
| 149 "scopes": [ |
| 150 "https://www.googleapis.com/auth/cloud-platform" |
| 151 ] |
| 152 }, |
136 "annotateText": { | 153 "annotateText": { |
137 "description": "A convenience method that provides all the f
eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on
e call.", | 154 "description": "A convenience method that provides all the f
eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on
e call.", |
138 "httpMethod": "POST", | 155 "httpMethod": "POST", |
139 "id": "language.documents.annotateText", | 156 "id": "language.documents.annotateText", |
140 "parameterOrder": [], | 157 "parameterOrder": [], |
141 "parameters": {}, | 158 "parameters": {}, |
142 "path": "v1beta1/documents:annotateText", | 159 "path": "v1beta1/documents:annotateText", |
143 "request": { | 160 "request": { |
144 "$ref": "AnnotateTextRequest" | 161 "$ref": "AnnotateTextRequest" |
145 }, | 162 }, |
(...skipping 17 matching lines...) Expand all Loading... |
163 "response": { | 180 "response": { |
164 "$ref": "AnalyzeEntitiesResponse" | 181 "$ref": "AnalyzeEntitiesResponse" |
165 }, | 182 }, |
166 "scopes": [ | 183 "scopes": [ |
167 "https://www.googleapis.com/auth/cloud-platform" | 184 "https://www.googleapis.com/auth/cloud-platform" |
168 ] | 185 ] |
169 } | 186 } |
170 } | 187 } |
171 } | 188 } |
172 }, | 189 }, |
173 "revision": "20161103", | 190 "revision": "20161205", |
174 "rootUrl": "https://language.googleapis.com/", | 191 "rootUrl": "https://language.googleapis.com/", |
175 "schemas": { | 192 "schemas": { |
176 "Document": { | 193 "Document": { |
177 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | 194 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
178 "id": "Document", | 195 "id": "Document", |
179 "properties": { | 196 "properties": { |
180 "language": { | 197 "language": { |
181 "description": "The language of the document (if not specifi
ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes
are\naccepted.<br>\n**Current Language Restrictions:**\n\n * Only English, Span
ish, and Japanese textual content\n are supported, with the following addition
al restriction:\n * `analyzeSentiment` only supports English text.\nIf the lan
guage (either specified by the caller or automatically detected)\nis not support
ed by the called API method, an `INVALID_ARGUMENT` error\nis returned.", | 198 "description": "The language of the document (if not specifi
ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes
are\naccepted.<br>\n**Current Language Restrictions:**\n\n * Only English, Span
ish, and Japanese textual content are supported.\nIf the language (either specif
ied by the caller or automatically detected)\nis not supported by the called API
method, an `INVALID_ARGUMENT` error\nis returned.", |
182 "type": "string" | 199 "type": "string" |
183 }, | 200 }, |
184 "gcsContentUri": { | 201 "gcsContentUri": { |
185 "description": "The Google Cloud Storage URI where the file
content is located.", | 202 "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.", |
186 "type": "string" | 203 "type": "string" |
187 }, | 204 }, |
188 "type": { | 205 "type": { |
189 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | 206 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
190 "enum": [ | 207 "enum": [ |
191 "TYPE_UNSPECIFIED", | 208 "TYPE_UNSPECIFIED", |
192 "PLAIN_TEXT", | 209 "PLAIN_TEXT", |
193 "HTML" | 210 "HTML" |
194 ], | 211 ], |
195 "enumDescriptions": [ | 212 "enumDescriptions": [ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 }, | 293 }, |
277 "type": "object" | 294 "type": "object" |
278 }, | 295 }, |
279 "EntityMention": { | 296 "EntityMention": { |
280 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", | 297 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", |
281 "id": "EntityMention", | 298 "id": "EntityMention", |
282 "properties": { | 299 "properties": { |
283 "text": { | 300 "text": { |
284 "$ref": "TextSpan", | 301 "$ref": "TextSpan", |
285 "description": "The mention text." | 302 "description": "The mention text." |
| 303 }, |
| 304 "type": { |
| 305 "description": "The type of the entity mention.", |
| 306 "enum": [ |
| 307 "TYPE_UNKNOWN", |
| 308 "PROPER", |
| 309 "COMMON" |
| 310 ], |
| 311 "enumDescriptions": [ |
| 312 "Unknown", |
| 313 "Proper name", |
| 314 "Common noun (or noun compound)" |
| 315 ], |
| 316 "type": "string" |
286 } | 317 } |
287 }, | 318 }, |
288 "type": "object" | 319 "type": "object" |
289 }, | 320 }, |
290 "AnalyzeSentimentRequest": { | 321 "AnalyzeSentimentRequest": { |
291 "description": "The sentiment analysis request message.", | 322 "description": "The sentiment analysis request message.", |
292 "id": "AnalyzeSentimentRequest", | 323 "id": "AnalyzeSentimentRequest", |
293 "properties": { | 324 "properties": { |
294 "document": { | 325 "document": { |
295 "$ref": "Document", | 326 "$ref": "Document", |
296 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." | 327 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." |
| 328 }, |
| 329 "encodingType": { |
| 330 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", |
| 331 "enum": [ |
| 332 "NONE", |
| 333 "UTF8", |
| 334 "UTF16", |
| 335 "UTF32" |
| 336 ], |
| 337 "enumDescriptions": [ |
| 338 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 339 "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.", |
| 340 "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.", |
| 341 "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." |
| 342 ], |
| 343 "type": "string" |
297 } | 344 } |
298 }, | 345 }, |
299 "type": "object" | 346 "type": "object" |
300 }, | 347 }, |
301 "AnalyzeSentimentResponse": { | 348 "AnalyzeSentimentResponse": { |
302 "description": "The sentiment analysis response message.", | 349 "description": "The sentiment analysis response message.", |
303 "id": "AnalyzeSentimentResponse", | 350 "id": "AnalyzeSentimentResponse", |
304 "properties": { | 351 "properties": { |
305 "documentSentiment": { | 352 "documentSentiment": { |
306 "$ref": "Sentiment", | 353 "$ref": "Sentiment", |
307 "description": "The overall sentiment of the input document.
" | 354 "description": "The overall sentiment of the input document.
" |
308 }, | 355 }, |
309 "language": { | 356 "language": { |
310 "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.", | 357 "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.", |
311 "type": "string" | 358 "type": "string" |
| 359 }, |
| 360 "sentences": { |
| 361 "description": "The sentiment for all the sentences in the d
ocument.", |
| 362 "items": { |
| 363 "$ref": "Sentence" |
| 364 }, |
| 365 "type": "array" |
| 366 } |
| 367 }, |
| 368 "type": "object" |
| 369 }, |
| 370 "AnalyzeSyntaxRequest": { |
| 371 "description": "The syntax analysis request message.", |
| 372 "id": "AnalyzeSyntaxRequest", |
| 373 "properties": { |
| 374 "document": { |
| 375 "$ref": "Document", |
| 376 "description": "Input document." |
| 377 }, |
| 378 "encodingType": { |
| 379 "description": "The encoding type used by the API to calcula
te offsets.", |
| 380 "enum": [ |
| 381 "NONE", |
| 382 "UTF8", |
| 383 "UTF16", |
| 384 "UTF32" |
| 385 ], |
| 386 "enumDescriptions": [ |
| 387 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 388 "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.", |
| 389 "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.", |
| 390 "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." |
| 391 ], |
| 392 "type": "string" |
312 } | 393 } |
313 }, | 394 }, |
314 "type": "object" | 395 "type": "object" |
315 }, | 396 }, |
316 "DependencyEdge": { | 397 "DependencyEdge": { |
317 "description": "Represents dependency parse tree information for a t
oken.", | 398 "description": "Represents dependency parse tree information for a t
oken.", |
318 "id": "DependencyEdge", | 399 "id": "DependencyEdge", |
319 "properties": { | 400 "properties": { |
320 "headTokenIndex": { | 401 "headTokenIndex": { |
321 "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.", | 402 "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.", |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 "Nominalized clausal passive", | 561 "Nominalized clausal passive", |
481 "Compound of numeric modifier", | 562 "Compound of numeric modifier", |
482 "Copula", | 563 "Copula", |
483 "Dislocated relation (for fronted/topicalized elements)" | 564 "Dislocated relation (for fronted/topicalized elements)" |
484 ], | 565 ], |
485 "type": "string" | 566 "type": "string" |
486 } | 567 } |
487 }, | 568 }, |
488 "type": "object" | 569 "type": "object" |
489 }, | 570 }, |
| 571 "AnalyzeSyntaxResponse": { |
| 572 "description": "The syntax analysis response message.", |
| 573 "id": "AnalyzeSyntaxResponse", |
| 574 "properties": { |
| 575 "language": { |
| 576 "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.", |
| 577 "type": "string" |
| 578 }, |
| 579 "tokens": { |
| 580 "description": "Tokens, along with their syntactic informati
on, in the input document.", |
| 581 "items": { |
| 582 "$ref": "Token" |
| 583 }, |
| 584 "type": "array" |
| 585 }, |
| 586 "sentences": { |
| 587 "description": "Sentences in the input document.", |
| 588 "items": { |
| 589 "$ref": "Sentence" |
| 590 }, |
| 591 "type": "array" |
| 592 } |
| 593 }, |
| 594 "type": "object" |
| 595 }, |
490 "AnnotateTextRequest": { | 596 "AnnotateTextRequest": { |
491 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 597 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
492 "id": "AnnotateTextRequest", | 598 "id": "AnnotateTextRequest", |
493 "properties": { | 599 "properties": { |
494 "document": { | 600 "document": { |
495 "$ref": "Document", | 601 "$ref": "Document", |
496 "description": "Input document." | 602 "description": "Input document." |
497 }, | 603 }, |
498 "encodingType": { | 604 "encodingType": { |
499 "description": "The encoding type used by the API to calcula
te offsets.", | 605 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 18 matching lines...) Expand all Loading... |
518 }, | 624 }, |
519 "type": "object" | 625 "type": "object" |
520 }, | 626 }, |
521 "Sentence": { | 627 "Sentence": { |
522 "description": "Represents a sentence in the input document.", | 628 "description": "Represents a sentence in the input document.", |
523 "id": "Sentence", | 629 "id": "Sentence", |
524 "properties": { | 630 "properties": { |
525 "text": { | 631 "text": { |
526 "$ref": "TextSpan", | 632 "$ref": "TextSpan", |
527 "description": "The sentence text." | 633 "description": "The sentence text." |
| 634 }, |
| 635 "sentiment": { |
| 636 "$ref": "Sentiment", |
| 637 "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." |
528 } | 638 } |
529 }, | 639 }, |
530 "type": "object" | 640 "type": "object" |
531 }, | 641 }, |
532 "Features": { | 642 "Features": { |
533 "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.", | 643 "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.", |
534 "id": "Features", | 644 "id": "Features", |
535 "properties": { | 645 "properties": { |
536 "extractDocumentSentiment": { | 646 "extractDocumentSentiment": { |
537 "description": "Extract document-level sentiment.", | 647 "description": "Extract document-level sentiment.", |
538 "type": "boolean" | 648 "type": "boolean" |
539 }, | 649 }, |
540 "extractEntities": { | 650 "extractEntities": { |
541 "description": "Extract entities.", | 651 "description": "Extract entities.", |
542 "type": "boolean" | 652 "type": "boolean" |
543 }, | 653 }, |
544 "extractSyntax": { | 654 "extractSyntax": { |
545 "description": "Extract syntax information.", | 655 "description": "Extract syntax information.", |
546 "type": "boolean" | 656 "type": "boolean" |
547 } | 657 } |
548 }, | 658 }, |
549 "type": "object" | 659 "type": "object" |
550 }, | 660 }, |
551 "PartOfSpeech": { | 661 "PartOfSpeech": { |
552 "description": "Represents part of speech information for a token.", | 662 "description": "Represents part of speech information for a token.", |
553 "id": "PartOfSpeech", | 663 "id": "PartOfSpeech", |
554 "properties": { | 664 "properties": { |
| 665 "aspect": { |
| 666 "description": "The grammatical aspect.", |
| 667 "enum": [ |
| 668 "ASPECT_UNKNOWN", |
| 669 "PERFECTIVE", |
| 670 "IMPERFECTIVE", |
| 671 "PROGRESSIVE" |
| 672 ], |
| 673 "enumDescriptions": [ |
| 674 "Aspect is not applicable in the analyzed language or is
not predicted.", |
| 675 "Perfective", |
| 676 "Imperfective", |
| 677 "Progressive" |
| 678 ], |
| 679 "type": "string" |
| 680 }, |
| 681 "gender": { |
| 682 "description": "The grammatical gender.", |
| 683 "enum": [ |
| 684 "GENDER_UNKNOWN", |
| 685 "FEMININE", |
| 686 "MASCULINE", |
| 687 "NEUTER" |
| 688 ], |
| 689 "enumDescriptions": [ |
| 690 "Gender is not applicable in the analyzed language or is
not predicted.", |
| 691 "Feminine", |
| 692 "Masculine", |
| 693 "Neuter" |
| 694 ], |
| 695 "type": "string" |
| 696 }, |
| 697 "person": { |
| 698 "description": "The grammatical person.", |
| 699 "enum": [ |
| 700 "PERSON_UNKNOWN", |
| 701 "FIRST", |
| 702 "SECOND", |
| 703 "THIRD", |
| 704 "REFLEXIVE_PERSON" |
| 705 ], |
| 706 "enumDescriptions": [ |
| 707 "Person is not applicable in the analyzed language or is
not predicted.", |
| 708 "First", |
| 709 "Second", |
| 710 "Third", |
| 711 "Reflexive" |
| 712 ], |
| 713 "type": "string" |
| 714 }, |
| 715 "case": { |
| 716 "description": "The grammatical case.", |
| 717 "enum": [ |
| 718 "CASE_UNKNOWN", |
| 719 "ACCUSATIVE", |
| 720 "ADVERBIAL", |
| 721 "COMPLEMENTIVE", |
| 722 "DATIVE", |
| 723 "GENITIVE", |
| 724 "INSTRUMENTAL", |
| 725 "LOCATIVE", |
| 726 "NOMINATIVE", |
| 727 "OBLIQUE", |
| 728 "PARTITIVE", |
| 729 "PREPOSITIONAL", |
| 730 "REFLEXIVE_CASE", |
| 731 "RELATIVE_CASE", |
| 732 "VOCATIVE" |
| 733 ], |
| 734 "enumDescriptions": [ |
| 735 "Case is not applicable in the analyzed language or is n
ot predicted.", |
| 736 "Accusative", |
| 737 "Adverbial", |
| 738 "Complementive", |
| 739 "Dative", |
| 740 "Genitive", |
| 741 "Instrumental", |
| 742 "Locative", |
| 743 "Nominative", |
| 744 "Oblique", |
| 745 "Partitive", |
| 746 "Prepositional", |
| 747 "Reflexive", |
| 748 "Relative", |
| 749 "Vocative" |
| 750 ], |
| 751 "type": "string" |
| 752 }, |
| 753 "form": { |
| 754 "description": "The grammatical form.", |
| 755 "enum": [ |
| 756 "FORM_UNKNOWN", |
| 757 "ADNOMIAL", |
| 758 "AUXILIARY", |
| 759 "COMPLEMENTIZER", |
| 760 "FINAL_ENDING", |
| 761 "GERUND", |
| 762 "REALIS", |
| 763 "IRREALIS", |
| 764 "SHORT", |
| 765 "LONG", |
| 766 "ORDER", |
| 767 "SPECIFIC" |
| 768 ], |
| 769 "enumDescriptions": [ |
| 770 "Form is not applicable in the analyzed language or is n
ot predicted.", |
| 771 "Adnomial", |
| 772 "Auxiliary", |
| 773 "Complementizer", |
| 774 "Final ending", |
| 775 "Gerund", |
| 776 "Realis", |
| 777 "Irrealis", |
| 778 "Short form", |
| 779 "Long form", |
| 780 "Order form", |
| 781 "Specific form" |
| 782 ], |
| 783 "type": "string" |
| 784 }, |
| 785 "tense": { |
| 786 "description": "The grammatical tense.", |
| 787 "enum": [ |
| 788 "TENSE_UNKNOWN", |
| 789 "CONDITIONAL_TENSE", |
| 790 "FUTURE", |
| 791 "PAST", |
| 792 "PRESENT", |
| 793 "IMPERFECT", |
| 794 "PLUPERFECT" |
| 795 ], |
| 796 "enumDescriptions": [ |
| 797 "Tense is not applicable in the analyzed language or is
not predicted.", |
| 798 "Conditional", |
| 799 "Future", |
| 800 "Past", |
| 801 "Present", |
| 802 "Imperfect", |
| 803 "Pluperfect" |
| 804 ], |
| 805 "type": "string" |
| 806 }, |
| 807 "proper": { |
| 808 "description": "The grammatical properness.", |
| 809 "enum": [ |
| 810 "PROPER_UNKNOWN", |
| 811 "PROPER", |
| 812 "NOT_PROPER" |
| 813 ], |
| 814 "enumDescriptions": [ |
| 815 "Proper is not applicable in the analyzed language or is
not predicted.", |
| 816 "Proper", |
| 817 "Not proper" |
| 818 ], |
| 819 "type": "string" |
| 820 }, |
| 821 "mood": { |
| 822 "description": "The grammatical mood.", |
| 823 "enum": [ |
| 824 "MOOD_UNKNOWN", |
| 825 "CONDITIONAL_MOOD", |
| 826 "IMPERATIVE", |
| 827 "INDICATIVE", |
| 828 "INTERROGATIVE", |
| 829 "JUSSIVE", |
| 830 "SUBJUNCTIVE" |
| 831 ], |
| 832 "enumDescriptions": [ |
| 833 "Mood is not applicable in the analyzed language or is n
ot predicted.", |
| 834 "Conditional", |
| 835 "Imperative", |
| 836 "Indicative", |
| 837 "Interrogative", |
| 838 "Jussive", |
| 839 "Subjunctive" |
| 840 ], |
| 841 "type": "string" |
| 842 }, |
555 "tag": { | 843 "tag": { |
556 "description": "The part of speech tag.", | 844 "description": "The part of speech tag.", |
557 "enum": [ | 845 "enum": [ |
558 "UNKNOWN", | 846 "UNKNOWN", |
559 "ADJ", | 847 "ADJ", |
560 "ADP", | 848 "ADP", |
561 "ADV", | 849 "ADV", |
562 "CONJ", | 850 "CONJ", |
563 "DET", | 851 "DET", |
564 "NOUN", | 852 "NOUN", |
(...skipping 15 matching lines...) Expand all Loading... |
580 "Noun (common and proper)", | 868 "Noun (common and proper)", |
581 "Cardinal number", | 869 "Cardinal number", |
582 "Pronoun", | 870 "Pronoun", |
583 "Particle or other function word", | 871 "Particle or other function word", |
584 "Punctuation", | 872 "Punctuation", |
585 "Verb (all tenses and modes)", | 873 "Verb (all tenses and modes)", |
586 "Other: foreign words, typos, abbreviations", | 874 "Other: foreign words, typos, abbreviations", |
587 "Affix" | 875 "Affix" |
588 ], | 876 ], |
589 "type": "string" | 877 "type": "string" |
| 878 }, |
| 879 "number": { |
| 880 "description": "The grammatical number.", |
| 881 "enum": [ |
| 882 "NUMBER_UNKNOWN", |
| 883 "SINGULAR", |
| 884 "PLURAL", |
| 885 "DUAL" |
| 886 ], |
| 887 "enumDescriptions": [ |
| 888 "Number is not applicable in the analyzed language or is
not predicted.", |
| 889 "Singular", |
| 890 "Plural", |
| 891 "Dual" |
| 892 ], |
| 893 "type": "string" |
| 894 }, |
| 895 "reciprocity": { |
| 896 "description": "The grammatical reciprocity.", |
| 897 "enum": [ |
| 898 "RECIPROCITY_UNKNOWN", |
| 899 "RECIPROCAL", |
| 900 "NON_RECIPROCAL" |
| 901 ], |
| 902 "enumDescriptions": [ |
| 903 "Reciprocity is not applicable in the analyzed language
or is not\npredicted.", |
| 904 "Reciprocal", |
| 905 "Non-reciprocal" |
| 906 ], |
| 907 "type": "string" |
| 908 }, |
| 909 "voice": { |
| 910 "description": "The grammatical voice.", |
| 911 "enum": [ |
| 912 "VOICE_UNKNOWN", |
| 913 "ACTIVE", |
| 914 "CAUSATIVE", |
| 915 "PASSIVE" |
| 916 ], |
| 917 "enumDescriptions": [ |
| 918 "Voice is not applicable in the analyzed language or is
not predicted.", |
| 919 "Active", |
| 920 "Causative", |
| 921 "Passive" |
| 922 ], |
| 923 "type": "string" |
590 } | 924 } |
591 }, | 925 }, |
592 "type": "object" | 926 "type": "object" |
593 }, | 927 }, |
594 "AnnotateTextResponse": { | 928 "AnnotateTextResponse": { |
595 "description": "The text annotations response message.", | 929 "description": "The text annotations response message.", |
596 "id": "AnnotateTextResponse", | 930 "id": "AnnotateTextResponse", |
597 "properties": { | 931 "properties": { |
598 "entities": { | 932 "entities": { |
599 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", | 933 "description": "Entities, along with their semantic informat
ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.
Features.extract_entities.", |
(...skipping 28 matching lines...) Expand all Loading... |
628 "type": "object" | 962 "type": "object" |
629 }, | 963 }, |
630 "Entity": { | 964 "Entity": { |
631 "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.", | 965 "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.", |
632 "id": "Entity", | 966 "id": "Entity", |
633 "properties": { | 967 "properties": { |
634 "metadata": { | 968 "metadata": { |
635 "additionalProperties": { | 969 "additionalProperties": { |
636 "type": "string" | 970 "type": "string" |
637 }, | 971 }, |
638 "description": "Metadata associated with the entity.\n\nCurr
ently, only Wikipedia URLs are provided, if available.\nThe associated key is \"
wikipedia_url\".", | 972 "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.", |
639 "type": "object" | 973 "type": "object" |
640 }, | 974 }, |
641 "salience": { | 975 "salience": { |
642 "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.", | 976 "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.", |
643 "format": "float", | 977 "format": "float", |
644 "type": "number" | 978 "type": "number" |
645 }, | 979 }, |
646 "type": { | 980 "type": { |
647 "description": "The entity type.", | 981 "description": "The entity type.", |
648 "enum": [ | 982 "enum": [ |
(...skipping 29 matching lines...) Expand all Loading... |
678 "description": "The representative name for the entity.", | 1012 "description": "The representative name for the entity.", |
679 "type": "string" | 1013 "type": "string" |
680 } | 1014 } |
681 }, | 1015 }, |
682 "type": "object" | 1016 "type": "object" |
683 }, | 1017 }, |
684 "Sentiment": { | 1018 "Sentiment": { |
685 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | 1019 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
686 "id": "Sentiment", | 1020 "id": "Sentiment", |
687 "properties": { | 1021 "properties": { |
| 1022 "score": { |
| 1023 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
| 1024 "format": "float", |
| 1025 "type": "number" |
| 1026 }, |
688 "polarity": { | 1027 "polarity": { |
689 "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.", | 1028 "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.", |
690 "format": "float", | 1029 "format": "float", |
691 "type": "number" | 1030 "type": "number" |
692 }, | 1031 }, |
693 "magnitude": { | 1032 "magnitude": { |
694 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of polarity (
positive or\nnegative).", | 1033 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", |
695 "format": "float", | 1034 "format": "float", |
696 "type": "number" | 1035 "type": "number" |
697 } | 1036 } |
698 }, | 1037 }, |
699 "type": "object" | 1038 "type": "object" |
700 }, | 1039 }, |
701 "Token": { | 1040 "Token": { |
702 "description": "Represents the smallest syntactic building block of
the text.", | 1041 "description": "Represents the smallest syntactic building block of
the text.", |
703 "id": "Token", | 1042 "id": "Token", |
704 "properties": { | 1043 "properties": { |
705 "text": { | 1044 "text": { |
706 "$ref": "TextSpan", | 1045 "$ref": "TextSpan", |
707 "description": "The token text." | 1046 "description": "The token text." |
708 }, | 1047 }, |
709 "partOfSpeech": { | 1048 "partOfSpeech": { |
710 "$ref": "PartOfSpeech", | 1049 "$ref": "PartOfSpeech", |
711 "description": "Parts of speech tag for this token." | 1050 "description": "Parts of speech tag for this token." |
712 }, | 1051 }, |
713 "dependencyEdge": { | 1052 "dependencyEdge": { |
714 "$ref": "DependencyEdge", | 1053 "$ref": "DependencyEdge", |
715 "description": "Dependency tree parse for this token." | 1054 "description": "Dependency tree parse for this token." |
716 }, | 1055 }, |
717 "lemma": { | 1056 "lemma": { |
718 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
(morphology))\nof the token.", | 1057 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
719 "type": "string" | 1058 "type": "string" |
720 } | 1059 } |
721 }, | 1060 }, |
722 "type": "object" | 1061 "type": "object" |
723 }, | 1062 }, |
724 "AnalyzeEntitiesResponse": { | 1063 "AnalyzeEntitiesResponse": { |
725 "description": "The entity analysis response message.", | 1064 "description": "The entity analysis response message.", |
726 "id": "AnalyzeEntitiesResponse", | 1065 "id": "AnalyzeEntitiesResponse", |
727 "properties": { | 1066 "properties": { |
728 "entities": { | 1067 "entities": { |
729 "description": "The recognized entities in the input documen
t.", | 1068 "description": "The recognized entities in the input documen
t.", |
730 "items": { | 1069 "items": { |
731 "$ref": "Entity" | 1070 "$ref": "Entity" |
732 }, | 1071 }, |
733 "type": "array" | 1072 "type": "array" |
734 }, | 1073 }, |
735 "language": { | 1074 "language": { |
736 "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.", |
737 "type": "string" | 1076 "type": "string" |
738 } | 1077 } |
739 }, | 1078 }, |
740 "type": "object" | 1079 "type": "object" |
741 } | 1080 } |
742 }, | 1081 }, |
743 "servicePath": "", | 1082 "servicePath": "", |
744 "title": "Google Cloud Natural Language API", | 1083 "title": "Google Cloud Natural Language API", |
745 "version": "v1beta1" | 1084 "version": "v1beta1" |
746 } | 1085 } |
OLD | NEW |