API documentation for language_v1.types module.
Classes
AnalyzeEntitiesRequest
The entity analysis request message.
The encoding type used by the API to calculate offsets.
AnalyzeEntitiesResponse
The entity analysis response message.
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][googl e.cloud.language.v1.Document.language] field for more details.
AnalyzeEntitySentimentRequest
The entity-level sentiment analysis request message.
The encoding type used by the API to calculate offsets.
AnalyzeEntitySentimentResponse
The entity-level sentiment analysis response message.
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][googl e.cloud.language.v1.Document.language] field for more details.
AnalyzeSentimentRequest
The sentiment analysis request message.
The encoding type used by the API to calculate sentence offsets.
AnalyzeSentimentResponse
The sentiment analysis response message.
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][googl e.cloud.language.v1.Document.language] field for more details.
AnalyzeSyntaxRequest
The syntax analysis request message.
The encoding type used by the API to calculate offsets.
AnalyzeSyntaxResponse
The syntax analysis response message.
Tokens, along with their syntactic information, in the input document.
AnnotateTextRequest
The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
The enabled features.
AnnotateTextResponse
The text annotations response message.
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.F eatures.extract_syntax][google.cloud.language.v1.AnnotateText Request.Features.extract_syntax].
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_senti ment][google.cloud.language.v1.AnnotateTextRequest.Features.ex tract_document_sentiment].
Categories identified in the input document.
ClassificationCategory
Represents a category returned from the text classifier.
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
ClassifyTextRequest
The document classification request message.
ClassifyTextResponse
The document classification response message.
CustomHttpPattern
API documentation for language_v1.types.CustomHttpPattern class.
DependencyEdge
Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017
The parse label for the token.
DescriptorProto
API documentation for language_v1.types.DescriptorProto class.
Document
Represents the input to API methods.
The source of the document: a string containing the content or a Google Cloud Storage URI.
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.
Entity
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.
The entity type.
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.
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq uest.Features.extract_entity_sentiment][google.cloud.languag e.v1.AnnotateTextRequest.Features.extract_entity_sentiment] is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document.
EntityMention
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
The type of the entity mention.
EnumDescriptorProto
API documentation for language_v1.types.EnumDescriptorProto class.
EnumOptions
API documentation for language_v1.types.EnumOptions class.
EnumValueDescriptorProto
API documentation for language_v1.types.EnumValueDescriptorProto class.
EnumValueOptions
API documentation for language_v1.types.EnumValueOptions class.
ExtensionRangeOptions
API documentation for language_v1.types.ExtensionRangeOptions class.
FieldDescriptorProto
API documentation for language_v1.types.FieldDescriptorProto class.
FieldOptions
API documentation for language_v1.types.FieldOptions class.
FileDescriptorProto
API documentation for language_v1.types.FileDescriptorProto class.
FileDescriptorSet
API documentation for language_v1.types.FileDescriptorSet class.
FileOptions
API documentation for language_v1.types.FileOptions class.
GeneratedCodeInfo
API documentation for language_v1.types.GeneratedCodeInfo class.
Http
API documentation for language_v1.types.Http class.
HttpRule
API documentation for language_v1.types.HttpRule class.
MessageOptions
API documentation for language_v1.types.MessageOptions class.
MethodDescriptorProto
API documentation for language_v1.types.MethodDescriptorProto class.
MethodOptions
API documentation for language_v1.types.MethodOptions class.
OneofDescriptorProto
API documentation for language_v1.types.OneofDescriptorProto class.
OneofOptions
API documentation for language_v1.types.OneofOptions class.
PartOfSpeech
Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
The grammatical aspect.
The grammatical form.
The grammatical mood.
The grammatical person.
The grammatical reciprocity.
The grammatical voice.
Sentence
Represents a sentence in the input document.
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.F eatures.extract_document_sentiment][google.cloud.language.v1 .AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
Sentiment
Represents the feeling associated with the entire text or entities in the text.
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
ServiceDescriptorProto
API documentation for language_v1.types.ServiceDescriptorProto class.
ServiceOptions
API documentation for language_v1.types.ServiceOptions class.
SourceCodeInfo
API documentation for language_v1.types.SourceCodeInfo class.
TextSpan
Represents an output piece of text.
The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.
Token
Represents the smallest syntactic building block of the text.
Parts of speech tag for this token.
Lemma
<https://en.wikipedia.org/wiki/Lemma_%28morphology%29>__ of
the token.
UninterpretedOption
API documentation for language_v1.types.UninterpretedOption class.