OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://language.googleapis.com/", | 12 "baseUrl": "https://language.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Cloud Natural Language", | 14 "canonicalName": "Cloud Natural Language", |
15 "description": "Google Cloud Natural Language API provides natural language
understanding technologies to developers. Examples include sentiment analysis, e
ntity recognition, and text annotations.", | 15 "description": "Google Cloud Natural Language API provides natural language
understanding technologies to developers. Examples include sentiment analysis, e
ntity recognition, and text annotations.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/natural-language/", | 17 "documentationLink": "https://cloud.google.com/natural-language/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "language:v1beta1", | 22 "id": "language:v1beta1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "language", | 24 "name": "language", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
28 "oauth_token": { | 28 "uploadType": { |
29 "description": "OAuth 2.0 token for the current user.", | 29 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
30 "location": "query", | 30 "location": "query", |
31 "type": "string" | 31 "type": "string" |
32 }, | 32 }, |
33 "bearer_token": { | |
34 "description": "OAuth bearer token.", | |
35 "location": "query", | |
36 "type": "string" | |
37 }, | |
38 "upload_protocol": { | |
39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
40 "location": "query", | |
41 "type": "string" | |
42 }, | |
43 "prettyPrint": { | |
44 "default": "true", | |
45 "description": "Returns response with indentations and line breaks."
, | |
46 "location": "query", | |
47 "type": "boolean" | |
48 }, | |
49 "fields": { | 33 "fields": { |
50 "description": "Selector specifying which fields to include in a par
tial response.", | 34 "description": "Selector specifying which fields to include in a par
tial response.", |
51 "location": "query", | 35 "location": "query", |
52 "type": "string" | 36 "type": "string" |
53 }, | 37 }, |
54 "uploadType": { | 38 "callback": { |
55 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 39 "description": "JSONP", |
56 "location": "query", | 40 "location": "query", |
57 "type": "string" | 41 "type": "string" |
58 }, | 42 }, |
59 "$.xgafv": { | 43 "$.xgafv": { |
60 "description": "V1 error format.", | 44 "description": "V1 error format.", |
61 "enum": [ | 45 "enum": [ |
62 "1", | 46 "1", |
63 "2" | 47 "2" |
64 ], | 48 ], |
65 "enumDescriptions": [ | 49 "enumDescriptions": [ |
66 "v1 error format", | 50 "v1 error format", |
67 "v2 error format" | 51 "v2 error format" |
68 ], | 52 ], |
69 "location": "query", | 53 "location": "query", |
70 "type": "string" | 54 "type": "string" |
71 }, | 55 }, |
72 "callback": { | |
73 "description": "JSONP", | |
74 "location": "query", | |
75 "type": "string" | |
76 }, | |
77 "alt": { | 56 "alt": { |
78 "default": "json", | 57 "default": "json", |
79 "description": "Data format for response.", | 58 "description": "Data format for response.", |
80 "enum": [ | 59 "enum": [ |
81 "json", | 60 "json", |
82 "media", | 61 "media", |
83 "proto" | 62 "proto" |
84 ], | 63 ], |
85 "enumDescriptions": [ | 64 "enumDescriptions": [ |
86 "Responses with Content-Type of application/json", | 65 "Responses with Content-Type of application/json", |
(...skipping 16 matching lines...) Expand all Loading... |
103 "quotaUser": { | 82 "quotaUser": { |
104 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 83 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
105 "location": "query", | 84 "location": "query", |
106 "type": "string" | 85 "type": "string" |
107 }, | 86 }, |
108 "pp": { | 87 "pp": { |
109 "default": "true", | 88 "default": "true", |
110 "description": "Pretty-print response.", | 89 "description": "Pretty-print response.", |
111 "location": "query", | 90 "location": "query", |
112 "type": "boolean" | 91 "type": "boolean" |
| 92 }, |
| 93 "bearer_token": { |
| 94 "description": "OAuth bearer token.", |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
| 98 "oauth_token": { |
| 99 "description": "OAuth 2.0 token for the current user.", |
| 100 "location": "query", |
| 101 "type": "string" |
| 102 }, |
| 103 "upload_protocol": { |
| 104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 105 "location": "query", |
| 106 "type": "string" |
| 107 }, |
| 108 "prettyPrint": { |
| 109 "default": "true", |
| 110 "description": "Returns response with indentations and line breaks."
, |
| 111 "location": "query", |
| 112 "type": "boolean" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "documents": { | 117 "documents": { |
118 "methods": { | 118 "methods": { |
119 "analyzeEntities": { | 119 "analyzeEntities": { |
120 "description": "Finds named entities (currently finds proper
names) in the text,\nentity types, salience, mentions for each entity, and othe
r properties.", | 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", |
123 "parameterOrder": [], | 123 "parameterOrder": [], |
124 "parameters": {}, | 124 "parameters": {}, |
125 "path": "v1beta1/documents:analyzeEntities", | 125 "path": "v1beta1/documents:analyzeEntities", |
126 "request": { | 126 "request": { |
127 "$ref": "AnalyzeEntitiesRequest" | 127 "$ref": "AnalyzeEntitiesRequest" |
128 }, | 128 }, |
129 "response": { | 129 "response": { |
130 "$ref": "AnalyzeEntitiesResponse" | 130 "$ref": "AnalyzeEntitiesResponse" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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": "20170301", | 190 "revision": "20170320", |
191 "rootUrl": "https://language.googleapis.com/", | 191 "rootUrl": "https://language.googleapis.com/", |
192 "schemas": { | 192 "schemas": { |
193 "TextSpan": { | |
194 "description": "Represents an output piece of text.", | |
195 "id": "TextSpan", | |
196 "properties": { | |
197 "beginOffset": { | |
198 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", | |
199 "format": "int32", | |
200 "type": "integer" | |
201 }, | |
202 "content": { | |
203 "description": "The content of the output text.", | |
204 "type": "string" | |
205 } | |
206 }, | |
207 "type": "object" | |
208 }, | |
209 "Token": { | |
210 "description": "Represents the smallest syntactic building block of
the text.", | |
211 "id": "Token", | |
212 "properties": { | |
213 "partOfSpeech": { | |
214 "$ref": "PartOfSpeech", | |
215 "description": "Parts of speech tag for this token." | |
216 }, | |
217 "text": { | |
218 "$ref": "TextSpan", | |
219 "description": "The token text." | |
220 }, | |
221 "dependencyEdge": { | |
222 "$ref": "DependencyEdge", | |
223 "description": "Dependency tree parse for this token." | |
224 }, | |
225 "lemma": { | |
226 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", | |
227 "type": "string" | |
228 } | |
229 }, | |
230 "type": "object" | |
231 }, | |
232 "Status": { | |
233 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", | |
234 "id": "Status", | |
235 "properties": { | |
236 "message": { | |
237 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | |
238 "type": "string" | |
239 }, | |
240 "details": { | |
241 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", | |
242 "items": { | |
243 "additionalProperties": { | |
244 "description": "Properties of the object. Contains f
ield @type with type URL.", | |
245 "type": "any" | |
246 }, | |
247 "type": "object" | |
248 }, | |
249 "type": "array" | |
250 }, | |
251 "code": { | |
252 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
253 "format": "int32", | |
254 "type": "integer" | |
255 } | |
256 }, | |
257 "type": "object" | |
258 }, | |
259 "Features": { | |
260 "description": "All available features for sentiment, syntax, and se
mantic analysis.\nSetting each one to true will enable that specific analysis fo
r the input.", | |
261 "id": "Features", | |
262 "properties": { | |
263 "extractSyntax": { | |
264 "description": "Extract syntax information.", | |
265 "type": "boolean" | |
266 }, | |
267 "extractDocumentSentiment": { | |
268 "description": "Extract document-level sentiment.", | |
269 "type": "boolean" | |
270 }, | |
271 "extractEntities": { | |
272 "description": "Extract entities.", | |
273 "type": "boolean" | |
274 } | |
275 }, | |
276 "type": "object" | |
277 }, | |
278 "EntityMention": { | |
279 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", | |
280 "id": "EntityMention", | |
281 "properties": { | |
282 "text": { | |
283 "$ref": "TextSpan", | |
284 "description": "The mention text." | |
285 }, | |
286 "type": { | |
287 "description": "The type of the entity mention.", | |
288 "enum": [ | |
289 "TYPE_UNKNOWN", | |
290 "PROPER", | |
291 "COMMON" | |
292 ], | |
293 "enumDescriptions": [ | |
294 "Unknown", | |
295 "Proper name", | |
296 "Common noun (or noun compound)" | |
297 ], | |
298 "type": "string" | |
299 } | |
300 }, | |
301 "type": "object" | |
302 }, | |
303 "Document": { | |
304 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | |
305 "id": "Document", | |
306 "properties": { | |
307 "gcsContentUri": { | |
308 "description": "The Google Cloud Storage URI where the file
content is located.\nThis URI must be of the form: gs://bucket_name/object_name.
For more\ndetails, see https://cloud.google.com/storage/docs/reference-uris.\nN
OTE: Cloud Storage object versioning is not supported.", | |
309 "type": "string" | |
310 }, | |
311 "language": { | |
312 "description": "The language of the document (if not specifi
ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes
are\naccepted.<br>\n**Current Language Restrictions:**\n\n * Only English, Span
ish, and Japanese textual content are supported.\nIf the language (either specif
ied by the caller or automatically detected)\nis not supported by the called API
method, an `INVALID_ARGUMENT` error\nis returned.", | |
313 "type": "string" | |
314 }, | |
315 "type": { | |
316 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | |
317 "enum": [ | |
318 "TYPE_UNSPECIFIED", | |
319 "PLAIN_TEXT", | |
320 "HTML" | |
321 ], | |
322 "enumDescriptions": [ | |
323 "The content type is not specified.", | |
324 "Plain text", | |
325 "HTML" | |
326 ], | |
327 "type": "string" | |
328 }, | |
329 "content": { | |
330 "description": "The content of the input in string format.", | |
331 "type": "string" | |
332 } | |
333 }, | |
334 "type": "object" | |
335 }, | |
336 "Sentence": { | |
337 "description": "Represents a sentence in the input document.", | |
338 "id": "Sentence", | |
339 "properties": { | |
340 "sentiment": { | |
341 "$ref": "Sentiment", | |
342 "description": "For calls to AnalyzeSentiment or if\nAnnotat
eTextRequest.Features.extract_document_sentiment is set to\ntrue, this field wil
l contain the sentiment for the sentence." | |
343 }, | |
344 "text": { | |
345 "$ref": "TextSpan", | |
346 "description": "The sentence text." | |
347 } | |
348 }, | |
349 "type": "object" | |
350 }, | |
351 "AnalyzeEntitiesRequest": { | |
352 "description": "The entity analysis request message.", | |
353 "id": "AnalyzeEntitiesRequest", | |
354 "properties": { | |
355 "encodingType": { | |
356 "description": "The encoding type used by the API to calcula
te offsets.", | |
357 "enum": [ | |
358 "NONE", | |
359 "UTF8", | |
360 "UTF16", | |
361 "UTF32" | |
362 ], | |
363 "enumDescriptions": [ | |
364 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | |
365 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | |
366 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | |
367 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-32 encoding of the input. Python is an example
of a language\nthat uses this encoding natively." | |
368 ], | |
369 "type": "string" | |
370 }, | |
371 "document": { | |
372 "$ref": "Document", | |
373 "description": "Input document." | |
374 } | |
375 }, | |
376 "type": "object" | |
377 }, | |
378 "Sentiment": { | |
379 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | |
380 "id": "Sentiment", | |
381 "properties": { | |
382 "magnitude": { | |
383 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", | |
384 "format": "float", | |
385 "type": "number" | |
386 }, | |
387 "polarity": { | |
388 "description": "DEPRECATED FIELD - This field is being depre
cated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.go
ogle.com/natural-language/docs for more information.", | |
389 "format": "float", | |
390 "type": "number" | |
391 }, | |
392 "score": { | |
393 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", | |
394 "format": "float", | |
395 "type": "number" | |
396 } | |
397 }, | |
398 "type": "object" | |
399 }, | |
400 "PartOfSpeech": { | 193 "PartOfSpeech": { |
401 "description": "Represents part of speech information for a token.", | 194 "description": "Represents part of speech information for a token.", |
402 "id": "PartOfSpeech", | 195 "id": "PartOfSpeech", |
403 "properties": { | 196 "properties": { |
| 197 "voice": { |
| 198 "description": "The grammatical voice.", |
| 199 "enum": [ |
| 200 "VOICE_UNKNOWN", |
| 201 "ACTIVE", |
| 202 "CAUSATIVE", |
| 203 "PASSIVE" |
| 204 ], |
| 205 "enumDescriptions": [ |
| 206 "Voice is not applicable in the analyzed language or is
not predicted.", |
| 207 "Active", |
| 208 "Causative", |
| 209 "Passive" |
| 210 ], |
| 211 "type": "string" |
| 212 }, |
| 213 "aspect": { |
| 214 "description": "The grammatical aspect.", |
| 215 "enum": [ |
| 216 "ASPECT_UNKNOWN", |
| 217 "PERFECTIVE", |
| 218 "IMPERFECTIVE", |
| 219 "PROGRESSIVE" |
| 220 ], |
| 221 "enumDescriptions": [ |
| 222 "Aspect is not applicable in the analyzed language or is
not predicted.", |
| 223 "Perfective", |
| 224 "Imperfective", |
| 225 "Progressive" |
| 226 ], |
| 227 "type": "string" |
| 228 }, |
| 229 "mood": { |
| 230 "description": "The grammatical mood.", |
| 231 "enum": [ |
| 232 "MOOD_UNKNOWN", |
| 233 "CONDITIONAL_MOOD", |
| 234 "IMPERATIVE", |
| 235 "INDICATIVE", |
| 236 "INTERROGATIVE", |
| 237 "JUSSIVE", |
| 238 "SUBJUNCTIVE" |
| 239 ], |
| 240 "enumDescriptions": [ |
| 241 "Mood is not applicable in the analyzed language or is n
ot predicted.", |
| 242 "Conditional", |
| 243 "Imperative", |
| 244 "Indicative", |
| 245 "Interrogative", |
| 246 "Jussive", |
| 247 "Subjunctive" |
| 248 ], |
| 249 "type": "string" |
| 250 }, |
| 251 "tag": { |
| 252 "description": "The part of speech tag.", |
| 253 "enum": [ |
| 254 "UNKNOWN", |
| 255 "ADJ", |
| 256 "ADP", |
| 257 "ADV", |
| 258 "CONJ", |
| 259 "DET", |
| 260 "NOUN", |
| 261 "NUM", |
| 262 "PRON", |
| 263 "PRT", |
| 264 "PUNCT", |
| 265 "VERB", |
| 266 "X", |
| 267 "AFFIX" |
| 268 ], |
| 269 "enumDescriptions": [ |
| 270 "Unknown", |
| 271 "Adjective", |
| 272 "Adposition (preposition and postposition)", |
| 273 "Adverb", |
| 274 "Conjunction", |
| 275 "Determiner", |
| 276 "Noun (common and proper)", |
| 277 "Cardinal number", |
| 278 "Pronoun", |
| 279 "Particle or other function word", |
| 280 "Punctuation", |
| 281 "Verb (all tenses and modes)", |
| 282 "Other: foreign words, typos, abbreviations", |
| 283 "Affix" |
| 284 ], |
| 285 "type": "string" |
| 286 }, |
| 287 "gender": { |
| 288 "description": "The grammatical gender.", |
| 289 "enum": [ |
| 290 "GENDER_UNKNOWN", |
| 291 "FEMININE", |
| 292 "MASCULINE", |
| 293 "NEUTER" |
| 294 ], |
| 295 "enumDescriptions": [ |
| 296 "Gender is not applicable in the analyzed language or is
not predicted.", |
| 297 "Feminine", |
| 298 "Masculine", |
| 299 "Neuter" |
| 300 ], |
| 301 "type": "string" |
| 302 }, |
| 303 "person": { |
| 304 "description": "The grammatical person.", |
| 305 "enum": [ |
| 306 "PERSON_UNKNOWN", |
| 307 "FIRST", |
| 308 "SECOND", |
| 309 "THIRD", |
| 310 "REFLEXIVE_PERSON" |
| 311 ], |
| 312 "enumDescriptions": [ |
| 313 "Person is not applicable in the analyzed language or is
not predicted.", |
| 314 "First", |
| 315 "Second", |
| 316 "Third", |
| 317 "Reflexive" |
| 318 ], |
| 319 "type": "string" |
| 320 }, |
404 "proper": { | 321 "proper": { |
405 "description": "The grammatical properness.", | 322 "description": "The grammatical properness.", |
406 "enum": [ | 323 "enum": [ |
407 "PROPER_UNKNOWN", | 324 "PROPER_UNKNOWN", |
408 "PROPER", | 325 "PROPER", |
409 "NOT_PROPER" | 326 "NOT_PROPER" |
410 ], | 327 ], |
411 "enumDescriptions": [ | 328 "enumDescriptions": [ |
412 "Proper is not applicable in the analyzed language or is
not predicted.", | 329 "Proper is not applicable in the analyzed language or is
not predicted.", |
413 "Proper", | 330 "Proper", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 "PLURAL", | 446 "PLURAL", |
530 "DUAL" | 447 "DUAL" |
531 ], | 448 ], |
532 "enumDescriptions": [ | 449 "enumDescriptions": [ |
533 "Number is not applicable in the analyzed language or is
not predicted.", | 450 "Number is not applicable in the analyzed language or is
not predicted.", |
534 "Singular", | 451 "Singular", |
535 "Plural", | 452 "Plural", |
536 "Dual" | 453 "Dual" |
537 ], | 454 ], |
538 "type": "string" | 455 "type": "string" |
539 }, | |
540 "voice": { | |
541 "description": "The grammatical voice.", | |
542 "enum": [ | |
543 "VOICE_UNKNOWN", | |
544 "ACTIVE", | |
545 "CAUSATIVE", | |
546 "PASSIVE" | |
547 ], | |
548 "enumDescriptions": [ | |
549 "Voice is not applicable in the analyzed language or is
not predicted.", | |
550 "Active", | |
551 "Causative", | |
552 "Passive" | |
553 ], | |
554 "type": "string" | |
555 }, | |
556 "aspect": { | |
557 "description": "The grammatical aspect.", | |
558 "enum": [ | |
559 "ASPECT_UNKNOWN", | |
560 "PERFECTIVE", | |
561 "IMPERFECTIVE", | |
562 "PROGRESSIVE" | |
563 ], | |
564 "enumDescriptions": [ | |
565 "Aspect is not applicable in the analyzed language or is
not predicted.", | |
566 "Perfective", | |
567 "Imperfective", | |
568 "Progressive" | |
569 ], | |
570 "type": "string" | |
571 }, | |
572 "mood": { | |
573 "description": "The grammatical mood.", | |
574 "enum": [ | |
575 "MOOD_UNKNOWN", | |
576 "CONDITIONAL_MOOD", | |
577 "IMPERATIVE", | |
578 "INDICATIVE", | |
579 "INTERROGATIVE", | |
580 "JUSSIVE", | |
581 "SUBJUNCTIVE" | |
582 ], | |
583 "enumDescriptions": [ | |
584 "Mood is not applicable in the analyzed language or is n
ot predicted.", | |
585 "Conditional", | |
586 "Imperative", | |
587 "Indicative", | |
588 "Interrogative", | |
589 "Jussive", | |
590 "Subjunctive" | |
591 ], | |
592 "type": "string" | |
593 }, | |
594 "tag": { | |
595 "description": "The part of speech tag.", | |
596 "enum": [ | |
597 "UNKNOWN", | |
598 "ADJ", | |
599 "ADP", | |
600 "ADV", | |
601 "CONJ", | |
602 "DET", | |
603 "NOUN", | |
604 "NUM", | |
605 "PRON", | |
606 "PRT", | |
607 "PUNCT", | |
608 "VERB", | |
609 "X", | |
610 "AFFIX" | |
611 ], | |
612 "enumDescriptions": [ | |
613 "Unknown", | |
614 "Adjective", | |
615 "Adposition (preposition and postposition)", | |
616 "Adverb", | |
617 "Conjunction", | |
618 "Determiner", | |
619 "Noun (common and proper)", | |
620 "Cardinal number", | |
621 "Pronoun", | |
622 "Particle or other function word", | |
623 "Punctuation", | |
624 "Verb (all tenses and modes)", | |
625 "Other: foreign words, typos, abbreviations", | |
626 "Affix" | |
627 ], | |
628 "type": "string" | |
629 }, | |
630 "gender": { | |
631 "description": "The grammatical gender.", | |
632 "enum": [ | |
633 "GENDER_UNKNOWN", | |
634 "FEMININE", | |
635 "MASCULINE", | |
636 "NEUTER" | |
637 ], | |
638 "enumDescriptions": [ | |
639 "Gender is not applicable in the analyzed language or is
not predicted.", | |
640 "Feminine", | |
641 "Masculine", | |
642 "Neuter" | |
643 ], | |
644 "type": "string" | |
645 }, | |
646 "person": { | |
647 "description": "The grammatical person.", | |
648 "enum": [ | |
649 "PERSON_UNKNOWN", | |
650 "FIRST", | |
651 "SECOND", | |
652 "THIRD", | |
653 "REFLEXIVE_PERSON" | |
654 ], | |
655 "enumDescriptions": [ | |
656 "Person is not applicable in the analyzed language or is
not predicted.", | |
657 "First", | |
658 "Second", | |
659 "Third", | |
660 "Reflexive" | |
661 ], | |
662 "type": "string" | |
663 } | 456 } |
664 }, | 457 }, |
665 "type": "object" | 458 "type": "object" |
666 }, | 459 }, |
667 "AnalyzeSyntaxRequest": { | 460 "AnalyzeSyntaxRequest": { |
668 "description": "The syntax analysis request message.", | 461 "description": "The syntax analysis request message.", |
669 "id": "AnalyzeSyntaxRequest", | 462 "id": "AnalyzeSyntaxRequest", |
670 "properties": { | 463 "properties": { |
671 "encodingType": { | 464 "encodingType": { |
672 "description": "The encoding type used by the API to calcula
te offsets.", | 465 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 }, | 503 }, |
711 "type": "array" | 504 "type": "array" |
712 } | 505 } |
713 }, | 506 }, |
714 "type": "object" | 507 "type": "object" |
715 }, | 508 }, |
716 "AnalyzeEntitiesResponse": { | 509 "AnalyzeEntitiesResponse": { |
717 "description": "The entity analysis response message.", | 510 "description": "The entity analysis response message.", |
718 "id": "AnalyzeEntitiesResponse", | 511 "id": "AnalyzeEntitiesResponse", |
719 "properties": { | 512 "properties": { |
| 513 "language": { |
| 514 "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.", |
| 515 "type": "string" |
| 516 }, |
720 "entities": { | 517 "entities": { |
721 "description": "The recognized entities in the input documen
t.", | 518 "description": "The recognized entities in the input documen
t.", |
722 "items": { | 519 "items": { |
723 "$ref": "Entity" | 520 "$ref": "Entity" |
724 }, | 521 }, |
725 "type": "array" | 522 "type": "array" |
726 }, | 523 } |
| 524 }, |
| 525 "type": "object" |
| 526 }, |
| 527 "AnalyzeSyntaxResponse": { |
| 528 "description": "The syntax analysis response message.", |
| 529 "id": "AnalyzeSyntaxResponse", |
| 530 "properties": { |
727 "language": { | 531 "language": { |
728 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | 532 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", |
729 "type": "string" | 533 "type": "string" |
| 534 }, |
| 535 "sentences": { |
| 536 "description": "Sentences in the input document.", |
| 537 "items": { |
| 538 "$ref": "Sentence" |
| 539 }, |
| 540 "type": "array" |
| 541 }, |
| 542 "tokens": { |
| 543 "description": "Tokens, along with their syntactic informati
on, in the input document.", |
| 544 "items": { |
| 545 "$ref": "Token" |
| 546 }, |
| 547 "type": "array" |
730 } | 548 } |
731 }, | 549 }, |
732 "type": "object" | 550 "type": "object" |
733 }, | 551 }, |
734 "Entity": { | 552 "Entity": { |
735 "description": "Represents a phrase in the text that is a known enti
ty, such as\na person, an organization, or location. The API associates informat
ion, such\nas salience and mentions, with entities.", | 553 "description": "Represents a phrase in the text that is a known enti
ty, such as\na person, an organization, or location. The API associates informat
ion, such\nas salience and mentions, with entities.", |
736 "id": "Entity", | 554 "id": "Entity", |
737 "properties": { | 555 "properties": { |
738 "mentions": { | 556 "mentions": { |
739 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", | 557 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 "type": "object" | 596 "type": "object" |
779 }, | 597 }, |
780 "salience": { | 598 "salience": { |
781 "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.", | 599 "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.", |
782 "format": "float", | 600 "format": "float", |
783 "type": "number" | 601 "type": "number" |
784 } | 602 } |
785 }, | 603 }, |
786 "type": "object" | 604 "type": "object" |
787 }, | 605 }, |
788 "AnalyzeSyntaxResponse": { | |
789 "description": "The syntax analysis response message.", | |
790 "id": "AnalyzeSyntaxResponse", | |
791 "properties": { | |
792 "language": { | |
793 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | |
794 "type": "string" | |
795 }, | |
796 "sentences": { | |
797 "description": "Sentences in the input document.", | |
798 "items": { | |
799 "$ref": "Sentence" | |
800 }, | |
801 "type": "array" | |
802 }, | |
803 "tokens": { | |
804 "description": "Tokens, along with their syntactic informati
on, in the input document.", | |
805 "items": { | |
806 "$ref": "Token" | |
807 }, | |
808 "type": "array" | |
809 } | |
810 }, | |
811 "type": "object" | |
812 }, | |
813 "AnnotateTextRequest": { | 606 "AnnotateTextRequest": { |
814 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 607 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
815 "id": "AnnotateTextRequest", | 608 "id": "AnnotateTextRequest", |
816 "properties": { | 609 "properties": { |
817 "encodingType": { | 610 "encodingType": { |
818 "description": "The encoding type used by the API to calcula
te offsets.", | 611 "description": "The encoding type used by the API to calcula
te offsets.", |
819 "enum": [ | 612 "enum": [ |
820 "NONE", | 613 "NONE", |
821 "UTF8", | 614 "UTF8", |
822 "UTF16", | |
823 "UTF32" | |
824 ], | |
825 "enumDescriptions": [ | |
826 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | |
827 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | |
828 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | |
829 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-32 encoding of the input. Python is an example
of a language\nthat uses this encoding natively." | |
830 ], | |
831 "type": "string" | |
832 }, | |
833 "document": { | |
834 "$ref": "Document", | |
835 "description": "Input document." | |
836 }, | |
837 "features": { | |
838 "$ref": "Features", | |
839 "description": "The enabled features." | |
840 } | |
841 }, | |
842 "type": "object" | |
843 }, | |
844 "AnalyzeSentimentRequest": { | |
845 "description": "The sentiment analysis request message.", | |
846 "id": "AnalyzeSentimentRequest", | |
847 "properties": { | |
848 "encodingType": { | |
849 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", | |
850 "enum": [ | |
851 "NONE", | |
852 "UTF8", | |
853 "UTF16", | 615 "UTF16", |
854 "UTF32" | 616 "UTF32" |
855 ], | 617 ], |
856 "enumDescriptions": [ | 618 "enumDescriptions": [ |
857 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | 619 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
858 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-8 encoding of the input. C++ and Go are example
s of languages\nthat use this encoding natively.", | 620 "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.", |
859 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-16 encoding of the input. Java and Javascript a
re examples of\nlanguages that use this encoding natively.", | 621 "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.", |
860 "Encoding-dependent information (such as `begin_offset`)
is calculated based\non the UTF-32 encoding of the input. Python is an example
of a language\nthat uses this encoding natively." | 622 "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." |
861 ], | 623 ], |
862 "type": "string" | 624 "type": "string" |
863 }, | 625 }, |
864 "document": { | 626 "document": { |
865 "$ref": "Document", | 627 "$ref": "Document", |
866 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." | 628 "description": "Input document." |
| 629 }, |
| 630 "features": { |
| 631 "$ref": "Features", |
| 632 "description": "The enabled features." |
867 } | 633 } |
868 }, | 634 }, |
869 "type": "object" | 635 "type": "object" |
870 }, | 636 }, |
871 "AnnotateTextResponse": { | 637 "AnnotateTextResponse": { |
872 "description": "The text annotations response message.", | 638 "description": "The text annotations response message.", |
873 "id": "AnnotateTextResponse", | 639 "id": "AnnotateTextResponse", |
874 "properties": { | 640 "properties": { |
875 "language": { | 641 "language": { |
876 "description": "The language of the text, which will be the
same as the language specified\nin the request or, if not specified, the automat
ically-detected language.\nSee Document.language field for more details.", | 642 "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.", |
(...skipping 20 matching lines...) Expand all Loading... |
897 }, | 663 }, |
898 "type": "array" | 664 "type": "array" |
899 }, | 665 }, |
900 "documentSentiment": { | 666 "documentSentiment": { |
901 "$ref": "Sentiment", | 667 "$ref": "Sentiment", |
902 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." | 668 "description": "The overall sentiment for the document. Popu
lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime
nt." |
903 } | 669 } |
904 }, | 670 }, |
905 "type": "object" | 671 "type": "object" |
906 }, | 672 }, |
| 673 "AnalyzeSentimentRequest": { |
| 674 "description": "The sentiment analysis request message.", |
| 675 "id": "AnalyzeSentimentRequest", |
| 676 "properties": { |
| 677 "encodingType": { |
| 678 "description": "The encoding type used by the API to calcula
te sentence offsets for the\nsentence sentiment.", |
| 679 "enum": [ |
| 680 "NONE", |
| 681 "UTF8", |
| 682 "UTF16", |
| 683 "UTF32" |
| 684 ], |
| 685 "enumDescriptions": [ |
| 686 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 687 "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.", |
| 688 "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.", |
| 689 "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." |
| 690 ], |
| 691 "type": "string" |
| 692 }, |
| 693 "document": { |
| 694 "$ref": "Document", |
| 695 "description": "Input document. Currently, `analyzeSentiment
` only supports English text\n(Document.language=\"EN\")." |
| 696 } |
| 697 }, |
| 698 "type": "object" |
| 699 }, |
907 "DependencyEdge": { | 700 "DependencyEdge": { |
908 "description": "Represents dependency parse tree information for a t
oken.", | 701 "description": "Represents dependency parse tree information for a t
oken.", |
909 "id": "DependencyEdge", | 702 "id": "DependencyEdge", |
910 "properties": { | 703 "properties": { |
911 "headTokenIndex": { | 704 "headTokenIndex": { |
912 "description": "Represents the head of this token in the dep
endency tree.\nThis is the index of the token which has an arc going to this tok
en.\nThe index is the position of the token in the array of tokens returned\nby
the API method. If this token is a root token, then the\n`head_token_index` is i
ts own index.", | 705 "description": "Represents the head of this token in the dep
endency tree.\nThis is the index of the token which has an arc going to this tok
en.\nThe index is the position of the token in the array of tokens returned\nby
the API method. If this token is a root token, then the\n`head_token_index` is i
ts own index.", |
913 "format": "int32", | 706 "format": "int32", |
914 "type": "integer" | 707 "type": "integer" |
915 }, | 708 }, |
916 "label": { | 709 "label": { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 "Nominalized clausal subject", | 863 "Nominalized clausal subject", |
1071 "Nominalized clausal passive", | 864 "Nominalized clausal passive", |
1072 "Compound of numeric modifier", | 865 "Compound of numeric modifier", |
1073 "Copula", | 866 "Copula", |
1074 "Dislocated relation (for fronted/topicalized elements)" | 867 "Dislocated relation (for fronted/topicalized elements)" |
1075 ], | 868 ], |
1076 "type": "string" | 869 "type": "string" |
1077 } | 870 } |
1078 }, | 871 }, |
1079 "type": "object" | 872 "type": "object" |
| 873 }, |
| 874 "Token": { |
| 875 "description": "Represents the smallest syntactic building block of
the text.", |
| 876 "id": "Token", |
| 877 "properties": { |
| 878 "text": { |
| 879 "$ref": "TextSpan", |
| 880 "description": "The token text." |
| 881 }, |
| 882 "dependencyEdge": { |
| 883 "$ref": "DependencyEdge", |
| 884 "description": "Dependency tree parse for this token." |
| 885 }, |
| 886 "lemma": { |
| 887 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
| 888 "type": "string" |
| 889 }, |
| 890 "partOfSpeech": { |
| 891 "$ref": "PartOfSpeech", |
| 892 "description": "Parts of speech tag for this token." |
| 893 } |
| 894 }, |
| 895 "type": "object" |
| 896 }, |
| 897 "TextSpan": { |
| 898 "description": "Represents an output piece of text.", |
| 899 "id": "TextSpan", |
| 900 "properties": { |
| 901 "content": { |
| 902 "description": "The content of the output text.", |
| 903 "type": "string" |
| 904 }, |
| 905 "beginOffset": { |
| 906 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", |
| 907 "format": "int32", |
| 908 "type": "integer" |
| 909 } |
| 910 }, |
| 911 "type": "object" |
| 912 }, |
| 913 "Status": { |
| 914 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` which can be used for common error conditions.\n\n# Lan
guage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mes
sage is\nexposed in different client libraries and different wire protocols, it
can be\nmapped differently. For example, it will likely be mapped to some except
ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\
n\nThe error model and the `Status` message can be used in a variety of\nenviron
ments, either with or without APIs, to provide a\nconsistent developer experienc
e across different environments.\n\nExample uses of this error model include:\n\
n- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step
may\n have a `Status` message for error reporting purpose.\n\n- Batch operati
ons. If a client uses batch request and batch response, the\n `Status` messag
e should be used directly inside batch response, one for\n each error sub-res
ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio
n\n results in its response, the status of those operations should be\n re
presented directly using the `Status` message.\n\n- Logging. If some API errors
are stored in logs, the message `Status` could\n be used directly after any s
tripping needed for security/privacy reasons.", |
| 915 "id": "Status", |
| 916 "properties": { |
| 917 "message": { |
| 918 "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.", |
| 919 "type": "string" |
| 920 }, |
| 921 "details": { |
| 922 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", |
| 923 "items": { |
| 924 "additionalProperties": { |
| 925 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 926 "type": "any" |
| 927 }, |
| 928 "type": "object" |
| 929 }, |
| 930 "type": "array" |
| 931 }, |
| 932 "code": { |
| 933 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 934 "format": "int32", |
| 935 "type": "integer" |
| 936 } |
| 937 }, |
| 938 "type": "object" |
| 939 }, |
| 940 "Features": { |
| 941 "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.", |
| 942 "id": "Features", |
| 943 "properties": { |
| 944 "extractSyntax": { |
| 945 "description": "Extract syntax information.", |
| 946 "type": "boolean" |
| 947 }, |
| 948 "extractDocumentSentiment": { |
| 949 "description": "Extract document-level sentiment.", |
| 950 "type": "boolean" |
| 951 }, |
| 952 "extractEntities": { |
| 953 "description": "Extract entities.", |
| 954 "type": "boolean" |
| 955 } |
| 956 }, |
| 957 "type": "object" |
| 958 }, |
| 959 "EntityMention": { |
| 960 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", |
| 961 "id": "EntityMention", |
| 962 "properties": { |
| 963 "text": { |
| 964 "$ref": "TextSpan", |
| 965 "description": "The mention text." |
| 966 }, |
| 967 "type": { |
| 968 "description": "The type of the entity mention.", |
| 969 "enum": [ |
| 970 "TYPE_UNKNOWN", |
| 971 "PROPER", |
| 972 "COMMON" |
| 973 ], |
| 974 "enumDescriptions": [ |
| 975 "Unknown", |
| 976 "Proper name", |
| 977 "Common noun (or noun compound)" |
| 978 ], |
| 979 "type": "string" |
| 980 } |
| 981 }, |
| 982 "type": "object" |
| 983 }, |
| 984 "Document": { |
| 985 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
| 986 "id": "Document", |
| 987 "properties": { |
| 988 "language": { |
| 989 "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.", |
| 990 "type": "string" |
| 991 }, |
| 992 "type": { |
| 993 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
| 994 "enum": [ |
| 995 "TYPE_UNSPECIFIED", |
| 996 "PLAIN_TEXT", |
| 997 "HTML" |
| 998 ], |
| 999 "enumDescriptions": [ |
| 1000 "The content type is not specified.", |
| 1001 "Plain text", |
| 1002 "HTML" |
| 1003 ], |
| 1004 "type": "string" |
| 1005 }, |
| 1006 "content": { |
| 1007 "description": "The content of the input in string format.", |
| 1008 "type": "string" |
| 1009 }, |
| 1010 "gcsContentUri": { |
| 1011 "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.", |
| 1012 "type": "string" |
| 1013 } |
| 1014 }, |
| 1015 "type": "object" |
| 1016 }, |
| 1017 "Sentence": { |
| 1018 "description": "Represents a sentence in the input document.", |
| 1019 "id": "Sentence", |
| 1020 "properties": { |
| 1021 "text": { |
| 1022 "$ref": "TextSpan", |
| 1023 "description": "The sentence text." |
| 1024 }, |
| 1025 "sentiment": { |
| 1026 "$ref": "Sentiment", |
| 1027 "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." |
| 1028 } |
| 1029 }, |
| 1030 "type": "object" |
| 1031 }, |
| 1032 "Sentiment": { |
| 1033 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
| 1034 "id": "Sentiment", |
| 1035 "properties": { |
| 1036 "polarity": { |
| 1037 "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.", |
| 1038 "format": "float", |
| 1039 "type": "number" |
| 1040 }, |
| 1041 "score": { |
| 1042 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
| 1043 "format": "float", |
| 1044 "type": "number" |
| 1045 }, |
| 1046 "magnitude": { |
| 1047 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", |
| 1048 "format": "float", |
| 1049 "type": "number" |
| 1050 } |
| 1051 }, |
| 1052 "type": "object" |
| 1053 }, |
| 1054 "AnalyzeEntitiesRequest": { |
| 1055 "description": "The entity analysis request message.", |
| 1056 "id": "AnalyzeEntitiesRequest", |
| 1057 "properties": { |
| 1058 "document": { |
| 1059 "$ref": "Document", |
| 1060 "description": "Input document." |
| 1061 }, |
| 1062 "encodingType": { |
| 1063 "description": "The encoding type used by the API to calcula
te offsets.", |
| 1064 "enum": [ |
| 1065 "NONE", |
| 1066 "UTF8", |
| 1067 "UTF16", |
| 1068 "UTF32" |
| 1069 ], |
| 1070 "enumDescriptions": [ |
| 1071 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", |
| 1072 "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.", |
| 1073 "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.", |
| 1074 "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." |
| 1075 ], |
| 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 } |
OLD | NEW |