docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/language_v1.documents.html b/docs/dyn/language_v1.documents.html
index 16793be..05d96ec 100644
--- a/docs/dyn/language_v1.documents.html
+++ b/docs/dyn/language_v1.documents.html
@@ -239,9 +239,6 @@
An object of the form:
{ # The entity-level sentiment analysis response message.
- "language": "A String", # 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.
"entities": [ # The recognized entities in the input document with associated sentiments.
{ # Represents a phrase in the text that is a known entity, such as
# a person, an organization, or location. The API associates information, such
@@ -297,6 +294,9 @@
},
},
],
+ "language": "A String", # 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.
}</pre>
</div>
@@ -341,6 +341,25 @@
An object of the form:
{ # The sentiment analysis response message.
+ "sentences": [ # The sentiment for all the sentences in the document.
+ { # Represents a sentence in the input document.
+ "text": { # Represents an output piece of text. # The sentence text.
+ "beginOffset": 42, # The API calculates the beginning offset of the content in the original
+ # document according to the EncodingType specified in the API request.
+ "content": "A String", # The content of the output text.
+ },
+ "sentiment": { # Represents the feeling associated with the entire text or entities in # For calls to AnalyzeSentiment or if
+ # AnnotateTextRequest.Features.extract_document_sentiment is set to
+ # true, this field will contain the sentiment for the sentence.
+ # the text.
+ "score": 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0
+ # (positive sentiment).
+ "magnitude": 3.14, # A non-negative number in the [0, +inf) range, which represents
+ # the absolute magnitude of sentiment regardless of score (positive or
+ # negative).
+ },
+ },
+ ],
"documentSentiment": { # Represents the feeling associated with the entire text or entities in # The overall sentiment of the input document.
# the text.
"score": 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0
@@ -352,25 +371,6 @@
"language": "A String", # 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.
- "sentences": [ # The sentiment for all the sentences in the document.
- { # Represents a sentence in the input document.
- "sentiment": { # Represents the feeling associated with the entire text or entities in # For calls to AnalyzeSentiment or if
- # AnnotateTextRequest.Features.extract_document_sentiment is set to
- # true, this field will contain the sentiment for the sentence.
- # the text.
- "score": 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0
- # (positive sentiment).
- "magnitude": 3.14, # A non-negative number in the [0, +inf) range, which represents
- # the absolute magnitude of sentiment regardless of score (positive or
- # negative).
- },
- "text": { # Represents an output piece of text. # The sentence text.
- "beginOffset": 42, # The API calculates the beginning offset of the content in the original
- # document according to the EncodingType specified in the API request.
- "content": "A String", # The content of the output text.
- },
- },
- ],
}</pre>
</div>
@@ -422,6 +422,11 @@
# See Document.language field for more details.
"sentences": [ # Sentences in the input document.
{ # Represents a sentence in the input document.
+ "text": { # Represents an output piece of text. # The sentence text.
+ "beginOffset": 42, # The API calculates the beginning offset of the content in the original
+ # document according to the EncodingType specified in the API request.
+ "content": "A String", # The content of the output text.
+ },
"sentiment": { # Represents the feeling associated with the entire text or entities in # For calls to AnalyzeSentiment or if
# AnnotateTextRequest.Features.extract_document_sentiment is set to
# true, this field will contain the sentiment for the sentence.
@@ -432,11 +437,6 @@
# the absolute magnitude of sentiment regardless of score (positive or
# negative).
},
- "text": { # Represents an output piece of text. # The sentence text.
- "beginOffset": 42, # The API calculates the beginning offset of the content in the original
- # document according to the EncodingType specified in the API request.
- "content": "A String", # The content of the output text.
- },
},
],
"tokens": [ # Tokens, along with their syntactic information, in the input document.
@@ -449,21 +449,17 @@
"dependencyEdge": { # Represents dependency parse tree information for a token. (For more # Dependency tree parse for this token.
# information on dependency labels, see
# http://www.aclweb.org/anthology/P13-2017
- "label": "A String", # The parse label for the token.
"headTokenIndex": 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.
+ "label": "A String", # The parse label for the token.
},
"lemma": "A String", # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
"partOfSpeech": { # Represents part of speech information for a token. Parts of speech # Parts of speech tag for this token.
# are as defined in
# http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
- "proper": "A String", # The grammatical properness.
- "case": "A String", # The grammatical case.
- "tense": "A String", # The grammatical tense.
- "reciprocity": "A String", # The grammatical reciprocity.
"form": "A String", # The grammatical form.
"number": "A String", # The grammatical number.
"voice": "A String", # The grammatical voice.
@@ -472,6 +468,10 @@
"tag": "A String", # The part of speech tag.
"gender": "A String", # The grammatical gender.
"person": "A String", # The grammatical person.
+ "proper": "A String", # The grammatical properness.
+ "case": "A String", # The grammatical case.
+ "tense": "A String", # The grammatical tense.
+ "reciprocity": "A String", # The grammatical reciprocity.
},
},
],
@@ -489,14 +489,6 @@
{ # The request message for the text annotation API, which can perform multiple
# analysis types (sentiment, entities, and syntax) in one call.
- "features": { # All available features for sentiment, syntax, and semantic analysis. # Required. The enabled features.
- # Setting each one to true will enable that specific analysis for the input.
- "classifyText": True or False, # Classify the full document into categories.
- "extractSyntax": True or False, # Extract syntax information.
- "extractDocumentSentiment": True or False, # Extract document-level sentiment.
- "extractEntitySentiment": True or False, # Extract entities and their associated sentiment.
- "extractEntities": True or False, # Extract entities.
- },
"encodingType": "A String", # The encoding type used by the API to calculate offsets.
"document": { # ################################################################ # # Required. Input document.
#
@@ -518,6 +510,14 @@
"content": "A String", # The content of the input in string format.
# Cloud audit logging exempt since it is based on user data.
},
+ "features": { # All available features for sentiment, syntax, and semantic analysis. # Required. The enabled features.
+ # Setting each one to true will enable that specific analysis for the input.
+ "classifyText": True or False, # Classify the full document into categories.
+ "extractSyntax": True or False, # Extract syntax information.
+ "extractDocumentSentiment": True or False, # Extract document-level sentiment.
+ "extractEntitySentiment": True or False, # Extract entities and their associated sentiment.
+ "extractEntities": True or False, # Extract entities.
+ },
}
x__xgafv: string, V1 error format.
@@ -529,12 +529,70 @@
An object of the form:
{ # The text annotations response message.
+ "sentences": [ # Sentences in the input document. Populated if the user enables
+ # AnnotateTextRequest.Features.extract_syntax.
+ { # Represents a sentence in the input document.
+ "text": { # Represents an output piece of text. # The sentence text.
+ "beginOffset": 42, # The API calculates the beginning offset of the content in the original
+ # document according to the EncodingType specified in the API request.
+ "content": "A String", # The content of the output text.
+ },
+ "sentiment": { # Represents the feeling associated with the entire text or entities in # For calls to AnalyzeSentiment or if
+ # AnnotateTextRequest.Features.extract_document_sentiment is set to
+ # true, this field will contain the sentiment for the sentence.
+ # the text.
+ "score": 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0
+ # (positive sentiment).
+ "magnitude": 3.14, # A non-negative number in the [0, +inf) range, which represents
+ # the absolute magnitude of sentiment regardless of score (positive or
+ # negative).
+ },
+ },
+ ],
+ "tokens": [ # Tokens, along with their syntactic information, in the input document.
+ # Populated if the user enables
+ # AnnotateTextRequest.Features.extract_syntax.
+ { # Represents the smallest syntactic building block of the text.
+ "text": { # Represents an output piece of text. # The token text.
+ "beginOffset": 42, # The API calculates the beginning offset of the content in the original
+ # document according to the EncodingType specified in the API request.
+ "content": "A String", # The content of the output text.
+ },
+ "dependencyEdge": { # Represents dependency parse tree information for a token. (For more # Dependency tree parse for this token.
+ # information on dependency labels, see
+ # http://www.aclweb.org/anthology/P13-2017
+ "headTokenIndex": 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.
+ "label": "A String", # The parse label for the token.
+ },
+ "lemma": "A String", # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
+ "partOfSpeech": { # Represents part of speech information for a token. Parts of speech # Parts of speech tag for this token.
+ # are as defined in
+ # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
+ "form": "A String", # The grammatical form.
+ "number": "A String", # The grammatical number.
+ "voice": "A String", # The grammatical voice.
+ "aspect": "A String", # The grammatical aspect.
+ "mood": "A String", # The grammatical mood.
+ "tag": "A String", # The part of speech tag.
+ "gender": "A String", # The grammatical gender.
+ "person": "A String", # The grammatical person.
+ "proper": "A String", # The grammatical properness.
+ "case": "A String", # The grammatical case.
+ "tense": "A String", # The grammatical tense.
+ "reciprocity": "A String", # The grammatical reciprocity.
+ },
+ },
+ ],
"categories": [ # Categories identified in the input document.
{ # Represents a category returned from the text classifier.
- "name": "A String", # The name of the category representing the document, from the [predefined
- # taxonomy](https://cloud.google.com/natural-language/docs/categories).
"confidence": 3.14, # The classifier's confidence of the category. Number represents how certain
# the classifier is that this category represents the given text.
+ "name": "A String", # The name of the category representing the document, from the [predefined
+ # taxonomy](https://cloud.google.com/natural-language/docs/categories).
},
],
"documentSentiment": { # Represents the feeling associated with the entire text or entities in # The overall sentiment for the document. Populated if the user enables
@@ -606,64 +664,6 @@
},
},
],
- "sentences": [ # Sentences in the input document. Populated if the user enables
- # AnnotateTextRequest.Features.extract_syntax.
- { # Represents a sentence in the input document.
- "sentiment": { # Represents the feeling associated with the entire text or entities in # For calls to AnalyzeSentiment or if
- # AnnotateTextRequest.Features.extract_document_sentiment is set to
- # true, this field will contain the sentiment for the sentence.
- # the text.
- "score": 3.14, # Sentiment score between -1.0 (negative sentiment) and 1.0
- # (positive sentiment).
- "magnitude": 3.14, # A non-negative number in the [0, +inf) range, which represents
- # the absolute magnitude of sentiment regardless of score (positive or
- # negative).
- },
- "text": { # Represents an output piece of text. # The sentence text.
- "beginOffset": 42, # The API calculates the beginning offset of the content in the original
- # document according to the EncodingType specified in the API request.
- "content": "A String", # The content of the output text.
- },
- },
- ],
- "tokens": [ # Tokens, along with their syntactic information, in the input document.
- # Populated if the user enables
- # AnnotateTextRequest.Features.extract_syntax.
- { # Represents the smallest syntactic building block of the text.
- "text": { # Represents an output piece of text. # The token text.
- "beginOffset": 42, # The API calculates the beginning offset of the content in the original
- # document according to the EncodingType specified in the API request.
- "content": "A String", # The content of the output text.
- },
- "dependencyEdge": { # Represents dependency parse tree information for a token. (For more # Dependency tree parse for this token.
- # information on dependency labels, see
- # http://www.aclweb.org/anthology/P13-2017
- "label": "A String", # The parse label for the token.
- "headTokenIndex": 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.
- },
- "lemma": "A String", # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
- "partOfSpeech": { # Represents part of speech information for a token. Parts of speech # Parts of speech tag for this token.
- # are as defined in
- # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
- "proper": "A String", # The grammatical properness.
- "case": "A String", # The grammatical case.
- "tense": "A String", # The grammatical tense.
- "reciprocity": "A String", # The grammatical reciprocity.
- "form": "A String", # The grammatical form.
- "number": "A String", # The grammatical number.
- "voice": "A String", # The grammatical voice.
- "aspect": "A String", # The grammatical aspect.
- "mood": "A String", # The grammatical mood.
- "tag": "A String", # The part of speech tag.
- "gender": "A String", # The grammatical gender.
- "person": "A String", # The grammatical person.
- },
- },
- ],
}</pre>
</div>
@@ -709,10 +709,10 @@
{ # The document classification response message.
"categories": [ # Categories representing the input document.
{ # Represents a category returned from the text classifier.
- "name": "A String", # The name of the category representing the document, from the [predefined
- # taxonomy](https://cloud.google.com/natural-language/docs/categories).
"confidence": 3.14, # The classifier's confidence of the category. Number represents how certain
# the classifier is that this category represents the given text.
+ "name": "A String", # The name of the category representing the document, from the [predefined
+ # taxonomy](https://cloud.google.com/natural-language/docs/categories).
},
],
}</pre>