Get desktop application:
View/edit binary Protocol Buffers messages
Provides text analysis operations such as sentiment analysis and entity recognition.
Analyzes the sentiment of the provided text.
The sentiment analysis request message.
Input document.
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
The sentiment analysis response message.
The overall sentiment of the input document.
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][google.cloud.language.v1beta1.Document.language] field for more details.
The sentiment for all the sentences in the document.
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
The entity analysis request message.
Input document.
The encoding type used by the API to calculate offsets.
The entity analysis response message.
The recognized entities in the input document.
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][google.cloud.language.v1beta1.Document.language] field for more details.
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
The syntax analysis request message.
Input document.
The encoding type used by the API to calculate offsets.
The syntax analysis response message.
Sentences in the input document.
Tokens, along with their syntactic information, in the input document.
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][google.cloud.language.v1beta1.Document.language] field for more details.
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
Input document.
The enabled features.
The encoding type used by the API to calculate offsets.
The text annotations response message.
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_syntax].
Tokens, along with their syntactic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_syntax].
Entities, along with their semantic information, in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_entities].
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_document_sentiment].
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][google.cloud.language.v1beta1.Document.language] field for more details.
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.
Used in:
Extract syntax information.
Extract entities.
Extract document-level sentiment.
Represents dependency parse tree information for a token.
Used in:
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.
The parse label for the token.
The parse label enum for the token.
Used in:
Unknown
Abbreviation modifier
Adjectival complement
Adverbial clause modifier
Adverbial modifier
Adjectival modifier of an NP
Appositional modifier of an NP
Attribute dependent of a copular verb
Auxiliary (non-main) verb
Passive auxiliary
Coordinating conjunction
Clausal complement of a verb or adjective
Conjunct
Clausal subject
Clausal passive subject
Dependency (unable to determine)
Determiner
Discourse
Direct object
Expletive
Goes with (part of a word in a text not well edited)
Indirect object
Marker (word introducing a subordinate clause)
Multi-word expression
Multi-word verbal expression
Negation modifier
Noun compound modifier
Noun phrase used as an adverbial modifier
Nominal subject
Passive nominal subject
Numeric modifier of a noun
Element of compound number
Punctuation mark
Parataxis relation
Participial modifier
The complement of a preposition is a clause
Object of a preposition
Possession modifier
Postverbal negative particle
Predicate complement
Preconjunt
Predeterminer
Prefix
Prepositional modifier
The relationship between a verb and verbal morpheme
Particle
Associative or possessive marker
Quantifier phrase modifier
Relative clause modifier
Complementizer in relative clause
Ellipsis without a preceding predicate
Referent
Remnant
Reparandum
Root
Suffix specifying a unit of number
Suffix
Temporal modifier
Topic marker
Clause headed by an infinite form of the verb that modifies a noun
Vocative
Open clausal complement
Name suffix
Name title
Adverbial phrase modifier
Causative auxiliary
Helper auxiliary
Rentaishi (Prenominal modifier)
Foreign words
Keyword
List for chains of comparable items
Nominalized clause
Nominalized clausal subject
Nominalized clausal passive
Compound of numeric modifier
Copula
Dislocated relation (for fronted/topicalized elements)
################################################################ # Represents the input to API methods.
Used in:
, , ,Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
The source of the document: a string containing the content or a Google Cloud Storage URI.
The content of the input in string format.
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.
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.<br> [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.
The document types enum.
Used in:
The content type is not specified.
Plain text
HTML
Represents the text encoding that the caller uses to process the output. Providing an `EncodingType` is recommended because the API provides the beginning offsets for various outputs, such as tokens and mentions, and languages that natively use different text encodings may access offsets differently.
Used in:
, , ,If `EncodingType` is not specified, encoding-dependent information (such as `begin_offset`) will be set at `-1`.
Encoding-dependent information (such as `begin_offset`) is calculated based on the UTF-8 encoding of the input. C++ and Go are examples of languages that use this encoding natively.
Encoding-dependent information (such as `begin_offset`) is calculated based on the UTF-16 encoding of the input. Java and Javascript are examples of languages that use this encoding natively.
Encoding-dependent information (such as `begin_offset`) is calculated based on the UTF-32 encoding of the input. Python is an example of a language that uses this encoding natively.
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.
Used in:
,The representative name for the entity.
The entity type.
Metadata associated with the entity. Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if available. The associated keys are "wikipedia_url" and "mid", respectively.
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.
The mentions of this entity in the input document. The API currently supports proper noun mentions.
The type of the entity.
Used in:
Unknown
Person
Location
Organization
Event
Work of art
Consumer goods
Other types
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
Used in:
The mention text.
The type of the entity mention.
The supported types of mentions.
Used in:
Unknown
Proper name
Common noun (or noun compound)
Represents part of speech information for a token.
Used in:
The part of speech tag.
The grammatical aspect.
The grammatical case.
The grammatical form.
The grammatical gender.
The grammatical mood.
The grammatical number.
The grammatical person.
The grammatical properness.
The grammatical reciprocity.
The grammatical tense.
The grammatical voice.
The characteristic of a verb that expresses time flow during an event.
Used in:
Aspect is not applicable in the analyzed language or is not predicted.
Perfective
Imperfective
Progressive
The grammatical function performed by a noun or pronoun in a phrase, clause, or sentence. In some languages, other parts of speech, such as adjective and determiner, take case inflection in agreement with the noun.
Used in:
Case is not applicable in the analyzed language or is not predicted.
Accusative
Adverbial
Complementive
Dative
Genitive
Instrumental
Locative
Nominative
Oblique
Partitive
Prepositional
Reflexive
Relative
Vocative
Depending on the language, Form can be categorizing different forms of verbs, adjectives, adverbs, etc. For example, categorizing inflected endings of verbs and adjectives or distinguishing between short and long forms of adjectives and participles
Used in:
Form is not applicable in the analyzed language or is not predicted.
Adnomial
Auxiliary
Complementizer
Final ending
Gerund
Realis
Irrealis
Short form
Long form
Order form
Specific form
Gender classes of nouns reflected in the behaviour of associated words.
Used in:
Gender is not applicable in the analyzed language or is not predicted.
Feminine
Masculine
Neuter
The grammatical feature of verbs, used for showing modality and attitude.
Used in:
Mood is not applicable in the analyzed language or is not predicted.
Conditional
Imperative
Indicative
Interrogative
Jussive
Subjunctive
Count distinctions.
Used in:
Number is not applicable in the analyzed language or is not predicted.
Singular
Plural
Dual
The distinction between the speaker, second person, third person, etc.
Used in:
Person is not applicable in the analyzed language or is not predicted.
First
Second
Third
Reflexive
This category shows if the token is part of a proper name.
Used in:
Proper is not applicable in the analyzed language or is not predicted.
Proper
Not proper
Reciprocal features of a pronoun.
Used in:
Reciprocity is not applicable in the analyzed language or is not predicted.
Reciprocal
Non-reciprocal
The part of speech tags enum.
Used in:
Unknown
Adjective
Adposition (preposition and postposition)
Adverb
Conjunction
Determiner
Noun (common and proper)
Cardinal number
Pronoun
Particle or other function word
Punctuation
Verb (all tenses and modes)
Other: foreign words, typos, abbreviations
Affix
Time reference.
Used in:
Tense is not applicable in the analyzed language or is not predicted.
Conditional
Future
Past
Present
Imperfect
Pluperfect
The relationship between the action that a verb expresses and the participants identified by its arguments.
Used in:
Voice is not applicable in the analyzed language or is not predicted.
Active
Causative
Passive
Represents a sentence in the input document.
Used in:
, ,The sentence text.
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
Represents the feeling associated with the entire text or entities in the text.
Used in:
, ,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.
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Represents an output piece of text.
Used in:
, ,The content of the output text.
The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v1beta1.EncodingType] specified in the API request.
Represents the smallest syntactic building block of the text.
Used in:
,The token text.
Parts of speech tag for this token.
Dependency tree parse for this token.
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.