blob: 7d8a85d802b0b0f6b6356e3ff251d71d8b438b8b [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="language_v1beta1.html">Cloud Natural Language API</a> . <a href="language_v1beta1.documents.html">documents</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#analyzeEntities">analyzeEntities(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#analyzeSentiment">analyzeSentiment(body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070082<p class="firstline">Analyzes the sentiment of the provided text.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#analyzeSyntax">analyzeSyntax(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#annotateText">annotateText(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.</p>
89<p class="toc_element">
90 <code><a href="#close">close()</a></code></p>
91<p class="firstline">Close httplib2 connections.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070092<h3>Method Details</h3>
93<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code class="details" id="analyzeEntities">analyzeEntities(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 <pre>Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070096
97Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070098 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070099 The object takes the form of:
100
101{ # The entity analysis request message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800102 &quot;document&quot;: { # ################################################################ # Represents the input to API methods. # Input document.
103 &quot;content&quot;: &quot;A String&quot;, # The content of the input in string format. Cloud audit logging exempt since it is based on user data.
104 &quot;gcsContentUri&quot;: &quot;A String&quot;, # The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
105 &quot;language&quot;: &quot;A String&quot;, # The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.
106 &quot;type&quot;: &quot;A String&quot;, # Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
107 },
108 &quot;encodingType&quot;: &quot;A String&quot;, # The encoding type used by the API to calculate offsets.
109}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700110
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116Returns:
117 An object of the form:
118
119 { # The entity analysis response message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800120 &quot;entities&quot;: [ # The recognized entities in the input document.
121 { # Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities.
122 &quot;mentions&quot;: [ # The mentions of this entity in the input document. The API currently supports proper noun mentions.
123 { # Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
124 &quot;text&quot;: { # Represents an output piece of text. # The mention text.
125 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
126 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800127 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;type&quot;: &quot;A String&quot;, # The type of the entity mention.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800130 ],
131 &quot;metadata&quot;: { # Metadata associated with the entity. Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if available. The associated keys are &quot;wikipedia_url&quot; and &quot;mid&quot;, respectively.
132 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700133 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800134 &quot;name&quot;: &quot;A String&quot;, # The representative name for the entity.
135 &quot;salience&quot;: 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
136 &quot;type&quot;: &quot;A String&quot;, # The entity type.
137 },
138 ],
139 &quot;language&quot;: &quot;A String&quot;, # The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
140}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700141</div>
142
143<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 <code class="details" id="analyzeSentiment">analyzeSentiment(body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700145 <pre>Analyzes the sentiment of the provided text.
146
147Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700149 The object takes the form of:
150
151{ # The sentiment analysis request message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;document&quot;: { # ################################################################ # Represents the input to API methods. # Input document.
153 &quot;content&quot;: &quot;A String&quot;, # The content of the input in string format. Cloud audit logging exempt since it is based on user data.
154 &quot;gcsContentUri&quot;: &quot;A String&quot;, # The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
155 &quot;language&quot;: &quot;A String&quot;, # The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.
156 &quot;type&quot;: &quot;A String&quot;, # Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
157 },
158 &quot;encodingType&quot;: &quot;A String&quot;, # The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
159}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700160
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166Returns:
167 An object of the form:
168
169 { # The sentiment analysis response message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;documentSentiment&quot;: { # Represents the feeling associated with the entire text or entities in the text. # The overall sentiment of the input document.
171 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
172 &quot;polarity&quot;: 3.14, # DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
173 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
174 },
175 &quot;language&quot;: &quot;A String&quot;, # The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
176 &quot;sentences&quot;: [ # The sentiment for all the sentences in the document.
177 { # Represents a sentence in the input document.
178 &quot;sentiment&quot;: { # Represents the feeling associated with the entire text or entities in the text. # For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.
179 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
180 &quot;polarity&quot;: 3.14, # DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
181 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800183 &quot;text&quot;: { # Represents an output piece of text. # The sentence text.
184 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
185 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
186 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800187 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800188 ],
189}</pre>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800190</div>
191
192<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700193 <code class="details" id="analyzeSyntax">analyzeSyntax(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 <pre>Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800195
196Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700197 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800198 The object takes the form of:
199
200{ # The syntax analysis request message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800201 &quot;document&quot;: { # ################################################################ # Represents the input to API methods. # Input document.
202 &quot;content&quot;: &quot;A String&quot;, # The content of the input in string format. Cloud audit logging exempt since it is based on user data.
203 &quot;gcsContentUri&quot;: &quot;A String&quot;, # The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
204 &quot;language&quot;: &quot;A String&quot;, # The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.
205 &quot;type&quot;: &quot;A String&quot;, # Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
206 },
207 &quot;encodingType&quot;: &quot;A String&quot;, # The encoding type used by the API to calculate offsets.
208}
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800209
210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215Returns:
216 An object of the form:
217
218 { # The syntax analysis response message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800219 &quot;language&quot;: &quot;A String&quot;, # The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
220 &quot;sentences&quot;: [ # Sentences in the input document.
221 { # Represents a sentence in the input document.
222 &quot;sentiment&quot;: { # Represents the feeling associated with the entire text or entities in the text. # For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.
223 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
224 &quot;polarity&quot;: 3.14, # DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
225 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800227 &quot;text&quot;: { # Represents an output piece of text. # The sentence text.
228 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
229 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800231 },
232 ],
233 &quot;tokens&quot;: [ # Tokens, along with their syntactic information, in the input document.
234 { # Represents the smallest syntactic building block of the text.
235 &quot;dependencyEdge&quot;: { # Represents dependency parse tree information for a token. # Dependency tree parse for this token.
236 &quot;headTokenIndex&quot;: 42, # Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the `head_token_index` is its own index.
237 &quot;label&quot;: &quot;A String&quot;, # The parse label for the token.
238 },
239 &quot;lemma&quot;: &quot;A String&quot;, # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
240 &quot;partOfSpeech&quot;: { # Represents part of speech information for a token. # Parts of speech tag for this token.
241 &quot;aspect&quot;: &quot;A String&quot;, # The grammatical aspect.
242 &quot;case&quot;: &quot;A String&quot;, # The grammatical case.
243 &quot;form&quot;: &quot;A String&quot;, # The grammatical form.
244 &quot;gender&quot;: &quot;A String&quot;, # The grammatical gender.
245 &quot;mood&quot;: &quot;A String&quot;, # The grammatical mood.
246 &quot;number&quot;: &quot;A String&quot;, # The grammatical number.
247 &quot;person&quot;: &quot;A String&quot;, # The grammatical person.
248 &quot;proper&quot;: &quot;A String&quot;, # The grammatical properness.
249 &quot;reciprocity&quot;: &quot;A String&quot;, # The grammatical reciprocity.
250 &quot;tag&quot;: &quot;A String&quot;, # The part of speech tag.
251 &quot;tense&quot;: &quot;A String&quot;, # The grammatical tense.
252 &quot;voice&quot;: &quot;A String&quot;, # The grammatical voice.
253 },
254 &quot;text&quot;: { # Represents an output piece of text. # The token text.
255 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
256 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
257 },
258 },
259 ],
260}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700261</div>
262
263<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700264 <code class="details" id="annotateText">annotateText(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 <pre>A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700266
267Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700268 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700269 The object takes the form of:
270
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700271{ # The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800272 &quot;document&quot;: { # ################################################################ # Represents the input to API methods. # Input document.
273 &quot;content&quot;: &quot;A String&quot;, # The content of the input in string format. Cloud audit logging exempt since it is based on user data.
274 &quot;gcsContentUri&quot;: &quot;A String&quot;, # The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
275 &quot;language&quot;: &quot;A String&quot;, # The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.
276 &quot;type&quot;: &quot;A String&quot;, # Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
277 },
278 &quot;encodingType&quot;: &quot;A String&quot;, # The encoding type used by the API to calculate offsets.
279 &quot;features&quot;: { # All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. # The enabled features.
280 &quot;extractDocumentSentiment&quot;: True or False, # Extract document-level sentiment.
281 &quot;extractEntities&quot;: True or False, # Extract entities.
282 &quot;extractSyntax&quot;: True or False, # Extract syntax information.
283 },
284}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700285
286 x__xgafv: string, V1 error format.
287 Allowed values
288 1 - v1 error format
289 2 - v2 error format
290
291Returns:
292 An object of the form:
293
294 { # The text annotations response message.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800295 &quot;documentSentiment&quot;: { # Represents the feeling associated with the entire text or entities in the text. # The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
296 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
297 &quot;polarity&quot;: 3.14, # DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
298 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
299 },
300 &quot;entities&quot;: [ # Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
301 { # Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as salience and mentions, with entities.
302 &quot;mentions&quot;: [ # The mentions of this entity in the input document. The API currently supports proper noun mentions.
303 { # Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
304 &quot;text&quot;: { # Represents an output piece of text. # The mention text.
305 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
306 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800307 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800308 &quot;type&quot;: &quot;A String&quot;, # The type of the entity mention.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800310 ],
311 &quot;metadata&quot;: { # Metadata associated with the entity. Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if available. The associated keys are &quot;wikipedia_url&quot; and &quot;mid&quot;, respectively.
312 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 &quot;name&quot;: &quot;A String&quot;, # The representative name for the entity.
315 &quot;salience&quot;: 3.14, # The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
316 &quot;type&quot;: &quot;A String&quot;, # The entity type.
317 },
318 ],
319 &quot;language&quot;: &quot;A String&quot;, # The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
320 &quot;sentences&quot;: [ # Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
321 { # Represents a sentence in the input document.
322 &quot;sentiment&quot;: { # Represents the feeling associated with the entire text or entities in the text. # For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.
323 &quot;magnitude&quot;: 3.14, # A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
324 &quot;polarity&quot;: 3.14, # DEPRECATED FIELD - This field is being deprecated in favor of score. Please refer to our documentation at https://cloud.google.com/natural-language/docs for more information.
325 &quot;score&quot;: 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800326 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800327 &quot;text&quot;: { # Represents an output piece of text. # The sentence text.
328 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
329 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
330 },
331 },
332 ],
333 &quot;tokens&quot;: [ # Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
334 { # Represents the smallest syntactic building block of the text.
335 &quot;dependencyEdge&quot;: { # Represents dependency parse tree information for a token. # Dependency tree parse for this token.
336 &quot;headTokenIndex&quot;: 42, # Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the `head_token_index` is its own index.
337 &quot;label&quot;: &quot;A String&quot;, # The parse label for the token.
338 },
339 &quot;lemma&quot;: &quot;A String&quot;, # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
340 &quot;partOfSpeech&quot;: { # Represents part of speech information for a token. # Parts of speech tag for this token.
341 &quot;aspect&quot;: &quot;A String&quot;, # The grammatical aspect.
342 &quot;case&quot;: &quot;A String&quot;, # The grammatical case.
343 &quot;form&quot;: &quot;A String&quot;, # The grammatical form.
344 &quot;gender&quot;: &quot;A String&quot;, # The grammatical gender.
345 &quot;mood&quot;: &quot;A String&quot;, # The grammatical mood.
346 &quot;number&quot;: &quot;A String&quot;, # The grammatical number.
347 &quot;person&quot;: &quot;A String&quot;, # The grammatical person.
348 &quot;proper&quot;: &quot;A String&quot;, # The grammatical properness.
349 &quot;reciprocity&quot;: &quot;A String&quot;, # The grammatical reciprocity.
350 &quot;tag&quot;: &quot;A String&quot;, # The part of speech tag.
351 &quot;tense&quot;: &quot;A String&quot;, # The grammatical tense.
352 &quot;voice&quot;: &quot;A String&quot;, # The grammatical voice.
353 },
354 &quot;text&quot;: { # Represents an output piece of text. # The token text.
355 &quot;beginOffset&quot;: 42, # The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
356 &quot;content&quot;: &quot;A String&quot;, # The content of the output text.
357 },
358 },
359 ],
360}</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700361</div>
362
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700363<div class="method">
364 <code class="details" id="close">close()</code>
365 <pre>Close httplib2 connections.</pre>
366</div>
367
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700368</body></html>