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