Enumerations

Aspect

static

number

The characteristic of a verb that expresses time flow during an event.

Value

ASPECT_UNKNOWN

Aspect is not applicable in the analyzed language or is not predicted.

PERFECTIVE

Perfective

IMPERFECTIVE

Imperfective

PROGRESSIVE

Progressive

Case

static

number

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.

Value

CASE_UNKNOWN

Case is not applicable in the analyzed language or is not predicted.

ACCUSATIVE

Accusative

ADVERBIAL

Adverbial

COMPLEMENTIVE

Complementive

DATIVE

Dative

GENITIVE

Genitive

INSTRUMENTAL

Instrumental

LOCATIVE

Locative

NOMINATIVE

Nominative

OBLIQUE

Oblique

PARTITIVE

Partitive

PREPOSITIONAL

Prepositional

REFLEXIVE_CASE

Reflexive

RELATIVE_CASE

Relative

VOCATIVE

Vocative

EncodingType

static

number

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.

Value

NONE

If EncodingType is not specified, encoding-dependent information (such as begin_offset) will be set at -1.

UTF8

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.

UTF16

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.

UTF32

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.

Form

static

number

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

Value

FORM_UNKNOWN

Form is not applicable in the analyzed language or is not predicted.

ADNOMIAL

Adnomial

AUXILIARY

Auxiliary

COMPLEMENTIZER

Complementizer

FINAL_ENDING

Final ending

GERUND

Gerund

REALIS

Realis

IRREALIS

Irrealis

SHORT

Short form

LONG

Long form

ORDER

Order form

SPECIFIC

Specific form

Gender

static

number

Gender classes of nouns reflected in the behaviour of associated words.

Value

GENDER_UNKNOWN

Gender is not applicable in the analyzed language or is not predicted.

FEMININE

Feminine

MASCULINE

Masculine

NEUTER

Neuter

Label

static

number

The parse label enum for the token.

Value

UNKNOWN

Unknown

ABBREV

Abbreviation modifier

ACOMP

Adjectival complement

ADVCL

Adverbial clause modifier

ADVMOD

Adverbial modifier

AMOD

Adjectival modifier of an NP

APPOS

Appositional modifier of an NP

ATTR

Attribute dependent of a copular verb

AUX

Auxiliary (non-main) verb

AUXPASS

Passive auxiliary

CC

Coordinating conjunction

CCOMP

Clausal complement of a verb or adjective

CONJ

Conjunct

CSUBJ

Clausal subject

CSUBJPASS

Clausal passive subject

DEP

Dependency (unable to determine)

DET

Determiner

DISCOURSE

Discourse

DOBJ

Direct object

EXPL

Expletive

GOESWITH

Goes with (part of a word in a text not well edited)

IOBJ

Indirect object

MARK

Marker (word introducing a subordinate clause)

MWE

Multi-word expression

MWV

Multi-word verbal expression

NEG

Negation modifier

NN

Noun compound modifier

NPADVMOD

Noun phrase used as an adverbial modifier

NSUBJ

Nominal subject

NSUBJPASS

Passive nominal subject

NUM

Numeric modifier of a noun

NUMBER

Element of compound number

P

Punctuation mark

PARATAXIS

Parataxis relation

PARTMOD

Participial modifier

PCOMP

The complement of a preposition is a clause

POBJ

Object of a preposition

POSS

Possession modifier

POSTNEG

Postverbal negative particle

PRECOMP

Predicate complement

PRECONJ

Preconjunt

PREDET

Predeterminer

PREF

Prefix

PREP

Prepositional modifier

PRONL

The relationship between a verb and verbal morpheme

PRT

Particle

PS

Associative or possessive marker

QUANTMOD

Quantifier phrase modifier

RCMOD

Relative clause modifier

RCMODREL

Complementizer in relative clause

RDROP

Ellipsis without a preceding predicate

REF

Referent

REMNANT

Remnant

REPARANDUM

Reparandum

ROOT

Root

SNUM

Suffix specifying a unit of number

SUFF

Suffix

TMOD

Temporal modifier

TOPIC

Topic marker

VMOD

Clause headed by an infinite form of the verb that modifies a noun

VOCATIVE

Vocative

XCOMP

Open clausal complement

SUFFIX

Name suffix

TITLE

Name title

ADVPHMOD

Adverbial phrase modifier

AUXCAUS

Causative auxiliary

AUXVV

Helper auxiliary

DTMOD

Rentaishi (Prenominal modifier)

FOREIGN

Foreign words

KW

Keyword

LIST

List for chains of comparable items

NOMC

Nominalized clause

NOMCSUBJ

Nominalized clausal subject

NOMCSUBJPASS

Nominalized clausal passive

NUMC

Compound of numeric modifier

COP

Copula

DISLOCATED

Dislocated relation (for fronted/topicalized elements)

ASP

Aspect marker

GMOD

Genitive modifier

GOBJ

Genitive object

INFMOD

Infinitival modifier

MES

Measure

NCOMP

Nominal complement of a noun

Mood

static

number

The grammatical feature of verbs, used for showing modality and attitude.

Value

MOOD_UNKNOWN

Mood is not applicable in the analyzed language or is not predicted.

CONDITIONAL_MOOD

Conditional

IMPERATIVE

Imperative

INDICATIVE

Indicative

INTERROGATIVE

Interrogative

JUSSIVE

Jussive

SUBJUNCTIVE

Subjunctive

Number

static

number

Count distinctions.

Value

NUMBER_UNKNOWN

Number is not applicable in the analyzed language or is not predicted.

SINGULAR

Singular

PLURAL

Plural

DUAL

Dual

Person

static

number

The distinction between the speaker, second person, third person, etc.

Value

PERSON_UNKNOWN

Person is not applicable in the analyzed language or is not predicted.

FIRST

First

SECOND

Second

THIRD

Third

REFLEXIVE_PERSON

Reflexive

Proper

static

number

This category shows if the token is part of a proper name.

Value

PROPER_UNKNOWN

Proper is not applicable in the analyzed language or is not predicted.

PROPER

Proper

NOT_PROPER

Not proper

Reciprocity

static

number

Reciprocal features of a pronoun.

Value

RECIPROCITY_UNKNOWN

Reciprocity is not applicable in the analyzed language or is not predicted.

RECIPROCAL

Reciprocal

NON_RECIPROCAL

Non-reciprocal

Tag

static

number

The part of speech tags enum.

Value

UNKNOWN

Unknown

ADJ

Adjective

ADP

Adposition (preposition and postposition)

ADV

Adverb

CONJ

Conjunction

DET

Determiner

NOUN

Noun (common and proper)

NUM

Cardinal number

PRON

Pronoun

PRT

Particle or other function word

PUNCT

Punctuation

VERB

Verb (all tenses and modes)

X

Other: foreign words, typos, abbreviations

AFFIX

Affix

Tense

static

number

Time reference.

Value

TENSE_UNKNOWN

Tense is not applicable in the analyzed language or is not predicted.

CONDITIONAL_TENSE

Conditional

FUTURE

Future

PAST

Past

PRESENT

Present

IMPERFECT

Imperfect

PLUPERFECT

Pluperfect

Type

static

number

The document types enum.

Value

TYPE_UNSPECIFIED

The content type is not specified.

PLAIN_TEXT

Plain text

HTML

HTML

Type

static

number

The supported types of mentions.

Value

TYPE_UNKNOWN

Unknown

PROPER

Proper name

COMMON

Common noun (or noun compound)

Type

static

number

The type of the entity.

Value

UNKNOWN

Unknown

PERSON

Person

LOCATION

Location

ORGANIZATION

Organization

EVENT

Event

WORK_OF_ART

Work of art

CONSUMER_GOOD

Consumer goods

OTHER

Other types

Voice

static

number

The relationship between the action that a verb expresses and the participants identified by its arguments.

Value

VOICE_UNKNOWN

Voice is not applicable in the analyzed language or is not predicted.

ACTIVE

Active

CAUSATIVE

Causative

PASSIVE

Passive

Properties

Aspect

static

number

The characteristic of a verb that expresses time flow during an event.

Value

ASPECT_UNKNOWN

Aspect is not applicable in the analyzed language or is not predicted.

PERFECTIVE

Perfective

IMPERFECTIVE

Imperfective

PROGRESSIVE

Progressive

Case

static

number

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.

Value

CASE_UNKNOWN

Case is not applicable in the analyzed language or is not predicted.

ACCUSATIVE

Accusative

ADVERBIAL

Adverbial

COMPLEMENTIVE

Complementive

DATIVE

Dative

GENITIVE

Genitive

INSTRUMENTAL

Instrumental

LOCATIVE

Locative

NOMINATIVE

Nominative

OBLIQUE

Oblique

PARTITIVE

Partitive

PREPOSITIONAL

Prepositional

REFLEXIVE_CASE

Reflexive

RELATIVE_CASE

Relative

VOCATIVE

Vocative

EncodingType

static

number

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.

Value

NONE

If EncodingType is not specified, encoding-dependent information (such as begin_offset) will be set at -1.

UTF8

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.

UTF16

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.

UTF32

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.

Form

static

number

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

Value

FORM_UNKNOWN

Form is not applicable in the analyzed language or is not predicted.

ADNOMIAL

Adnomial

AUXILIARY

Auxiliary

COMPLEMENTIZER

Complementizer

FINAL_ENDING

Final ending

GERUND

Gerund

REALIS

Realis

IRREALIS

Irrealis

SHORT

Short form

LONG

Long form

ORDER

Order form

SPECIFIC

Specific form

Gender

static

number

Gender classes of nouns reflected in the behaviour of associated words.

Value

GENDER_UNKNOWN

Gender is not applicable in the analyzed language or is not predicted.

FEMININE

Feminine

MASCULINE

Masculine

NEUTER

Neuter

Label

static

number

The parse label enum for the token.

Value

UNKNOWN

Unknown

ABBREV

Abbreviation modifier

ACOMP

Adjectival complement

ADVCL

Adverbial clause modifier

ADVMOD

Adverbial modifier

AMOD

Adjectival modifier of an NP

APPOS

Appositional modifier of an NP

ATTR

Attribute dependent of a copular verb

AUX

Auxiliary (non-main) verb

AUXPASS

Passive auxiliary

CC

Coordinating conjunction

CCOMP

Clausal complement of a verb or adjective

CONJ

Conjunct

CSUBJ

Clausal subject

CSUBJPASS

Clausal passive subject

DEP

Dependency (unable to determine)

DET

Determiner

DISCOURSE

Discourse

DOBJ

Direct object

EXPL

Expletive

GOESWITH

Goes with (part of a word in a text not well edited)

IOBJ

Indirect object

MARK

Marker (word introducing a subordinate clause)

MWE

Multi-word expression

MWV

Multi-word verbal expression

NEG

Negation modifier

NN

Noun compound modifier

NPADVMOD

Noun phrase used as an adverbial modifier

NSUBJ

Nominal subject

NSUBJPASS

Passive nominal subject

NUM

Numeric modifier of a noun

NUMBER

Element of compound number

P

Punctuation mark

PARATAXIS

Parataxis relation

PARTMOD

Participial modifier

PCOMP

The complement of a preposition is a clause

POBJ

Object of a preposition

POSS

Possession modifier

POSTNEG

Postverbal negative particle

PRECOMP

Predicate complement

PRECONJ

Preconjunt

PREDET

Predeterminer

PREF

Prefix

PREP

Prepositional modifier

PRONL

The relationship between a verb and verbal morpheme

PRT

Particle

PS

Associative or possessive marker

QUANTMOD

Quantifier phrase modifier

RCMOD

Relative clause modifier

RCMODREL

Complementizer in relative clause

RDROP

Ellipsis without a preceding predicate

REF

Referent

REMNANT

Remnant

REPARANDUM

Reparandum

ROOT

Root

SNUM

Suffix specifying a unit of number

SUFF

Suffix

TMOD

Temporal modifier

TOPIC

Topic marker

VMOD

Clause headed by an infinite form of the verb that modifies a noun

VOCATIVE

Vocative

XCOMP

Open clausal complement

SUFFIX

Name suffix

TITLE

Name title

ADVPHMOD

Adverbial phrase modifier

AUXCAUS

Causative auxiliary

AUXVV

Helper auxiliary

DTMOD

Rentaishi (Prenominal modifier)

FOREIGN

Foreign words

KW

Keyword

LIST

List for chains of comparable items

NOMC

Nominalized clause

NOMCSUBJ

Nominalized clausal subject

NOMCSUBJPASS

Nominalized clausal passive

NUMC

Compound of numeric modifier

COP

Copula

DISLOCATED

Dislocated relation (for fronted/topicalized elements)

ASP

Aspect marker

GMOD

Genitive modifier

GOBJ

Genitive object

INFMOD

Infinitival modifier

MES

Measure

NCOMP

Nominal complement of a noun

Mood

static

number

The grammatical feature of verbs, used for showing modality and attitude.

Value

MOOD_UNKNOWN

Mood is not applicable in the analyzed language or is not predicted.

CONDITIONAL_MOOD

Conditional

IMPERATIVE

Imperative

INDICATIVE

Indicative

INTERROGATIVE

Interrogative

JUSSIVE

Jussive

SUBJUNCTIVE

Subjunctive

Number

static

number

Count distinctions.

Value

NUMBER_UNKNOWN

Number is not applicable in the analyzed language or is not predicted.

SINGULAR

Singular

PLURAL

Plural

DUAL

Dual

Person

static

number

The distinction between the speaker, second person, third person, etc.

Value

PERSON_UNKNOWN

Person is not applicable in the analyzed language or is not predicted.

FIRST

First

SECOND

Second

THIRD

Third

REFLEXIVE_PERSON

Reflexive

Proper

static

number

This category shows if the token is part of a proper name.

Value

PROPER_UNKNOWN

Proper is not applicable in the analyzed language or is not predicted.

PROPER

Proper

NOT_PROPER

Not proper

Reciprocity

static

number

Reciprocal features of a pronoun.

Value

RECIPROCITY_UNKNOWN

Reciprocity is not applicable in the analyzed language or is not predicted.

RECIPROCAL

Reciprocal

NON_RECIPROCAL

Non-reciprocal

Tag

static

number

The part of speech tags enum.

Value

UNKNOWN

Unknown

ADJ

Adjective

ADP

Adposition (preposition and postposition)

ADV

Adverb

CONJ

Conjunction

DET

Determiner

NOUN

Noun (common and proper)

NUM

Cardinal number

PRON

Pronoun

PRT

Particle or other function word

PUNCT

Punctuation

VERB

Verb (all tenses and modes)

X

Other: foreign words, typos, abbreviations

AFFIX

Affix

Tense

static

number

Time reference.

Value

TENSE_UNKNOWN

Tense is not applicable in the analyzed language or is not predicted.

CONDITIONAL_TENSE

Conditional

FUTURE

Future

PAST

Past

PRESENT

Present

IMPERFECT

Imperfect

PLUPERFECT

Pluperfect

Type

static

number

The document types enum.

Value

TYPE_UNSPECIFIED

The content type is not specified.

PLAIN_TEXT

Plain text

HTML

HTML

Type

static

number

The supported types of mentions.

Value

TYPE_UNKNOWN

Unknown

PROPER

Proper name

COMMON

Common noun (or noun compound)

Type

static

number

The type of the entity.

Value

UNKNOWN

Unknown

PERSON

Person

LOCATION

Location

ORGANIZATION

Organization

EVENT

Event

WORK_OF_ART

Work of art

CONSUMER_GOOD

Consumer goods

OTHER

Other types

Voice

static

number

The relationship between the action that a verb expresses and the participants identified by its arguments.

Value

VOICE_UNKNOWN

Voice is not applicable in the analyzed language or is not predicted.

ACTIVE

Active

CAUSATIVE

Causative

PASSIVE

Passive

Abstract types

AnalyzeEntitiesRequest

static

The entity analysis request message.

Properties

Parameter

document

Object

Input document.

This object should have the same structure as Document

encodingType

number

The encoding type used by the API to calculate offsets.

The number should be among the values of EncodingType

See also

google.cloud.language.v1beta2.AnalyzeEntitiesRequest definition in proto format

AnalyzeEntitiesResponse

static

The entity analysis response message.

Properties

Parameter

entities

Array of Object

The recognized entities in the input document.

This object should have the same structure as Entity

language

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.

See also

google.cloud.language.v1beta2.AnalyzeEntitiesResponse definition in proto format

AnalyzeEntitySentimentRequest

static

The entity-level sentiment analysis request message.

Properties

Parameter

document

Object

Input document.

This object should have the same structure as Document

encodingType

number

The encoding type used by the API to calculate offsets.

The number should be among the values of EncodingType

See also

google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest definition in proto format

AnalyzeEntitySentimentResponse

static

The entity-level sentiment analysis response message.

Properties

Parameter

entities

Array of Object

The recognized entities in the input document with associated sentiments.

This object should have the same structure as Entity

language

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.

See also

google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse definition in proto format

AnalyzeSentimentRequest

static

The sentiment analysis request message.

Properties

Parameter

document

Object

Input document.

This object should have the same structure as Document

encodingType

number

The encoding type used by the API to calculate sentence offsets for the sentence sentiment.

The number should be among the values of EncodingType

See also

google.cloud.language.v1beta2.AnalyzeSentimentRequest definition in proto format

AnalyzeSentimentResponse

static

The sentiment analysis response message.

Properties

Parameter

documentSentiment

Object

The overall sentiment of the input document.

This object should have the same structure as Sentiment

language

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

Array of Object

The sentiment for all the sentences in the document.

This object should have the same structure as Sentence

See also

google.cloud.language.v1beta2.AnalyzeSentimentResponse definition in proto format

AnalyzeSyntaxRequest

static

The syntax analysis request message.

Properties

Parameter

document

Object

Input document.

This object should have the same structure as Document

encodingType

number

The encoding type used by the API to calculate offsets.

The number should be among the values of EncodingType

See also

google.cloud.language.v1beta2.AnalyzeSyntaxRequest definition in proto format

AnalyzeSyntaxResponse

static

The syntax analysis response message.

Properties

Parameter

sentences

Array of Object

Sentences in the input document.

This object should have the same structure as Sentence

tokens

Array of Object

Tokens, along with their syntactic information, in the input document.

This object should have the same structure as Token

language

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.

See also

google.cloud.language.v1beta2.AnalyzeSyntaxResponse definition in proto format

AnnotateTextRequest

static

The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.

Properties

Parameter

document

Object

Input document.

This object should have the same structure as Document

features

Object

The enabled features.

This object should have the same structure as Features

encodingType

number

The encoding type used by the API to calculate offsets.

The number should be among the values of EncodingType

See also

google.cloud.language.v1beta2.AnnotateTextRequest definition in proto format

AnnotateTextResponse

static

The text annotations response message.

Properties

Parameter

sentences

Array of Object

Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.

This object should have the same structure as Sentence

tokens

Array of Object

Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.

This object should have the same structure as Token

entities

Array of Object

Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.

This object should have the same structure as Entity

documentSentiment

Object

The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.

This object should have the same structure as Sentiment

language

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.

categories

Array of Object

Categories identified in the input document.

This object should have the same structure as ClassificationCategory

See also

google.cloud.language.v1beta2.AnnotateTextResponse definition in proto format

ClassificationCategory

static

Represents a category returned from the text classifier.

Properties

Parameter

name

string

The name of the category representing the document.

confidence

number

The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

See also

google.cloud.language.v1beta2.ClassificationCategory definition in proto format

ClassifyTextRequest

static

The document classification request message.

Property

Parameter

document

Object

Input document.

This object should have the same structure as Document

See also

google.cloud.language.v1beta2.ClassifyTextRequest definition in proto format

ClassifyTextResponse

static

The document classification response message.

Property

Parameter

categories

Array of Object

Categories representing the input document.

This object should have the same structure as ClassificationCategory

See also

google.cloud.language.v1beta2.ClassifyTextResponse definition in proto format

DependencyEdge

static

Represents dependency parse tree information for a token.

Properties

Parameter

headTokenIndex

number

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

number

The parse label for the token.

The number should be among the values of Label

See also

google.cloud.language.v1beta2.DependencyEdge definition in proto format

Document

static

################################################################ #

Represents the input to API methods.

Properties

Parameter

type

number

Required. If the type is not set or is TYPE_UNSPECIFIED, returns an INVALID_ARGUMENT error.

The number should be among the values of Type

content

string

The content of the input in string format.

gcsContentUri

string

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.

language

string

The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.
Language Support 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.

See also

google.cloud.language.v1beta2.Document definition in proto format

Entity

static

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.

Properties

Parameter

name

string

The representative name for the entity.

type

number

The entity type.

The number should be among the values of Type

metadata

Object with string properties

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.

salience

number

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.

mentions

Array of Object

The mentions of this entity in the input document. The API currently supports proper noun mentions.

This object should have the same structure as EntityMention

sentiment

Object

For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document.

This object should have the same structure as Sentiment

See also

google.cloud.language.v1beta2.Entity definition in proto format

EntityMention

static

Represents a mention for an entity in the text. Currently, proper noun mentions are supported.

Properties

Parameter

text

Object

The mention text.

This object should have the same structure as TextSpan

type

number

The type of the entity mention.

The number should be among the values of Type

sentiment

Object

For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.

This object should have the same structure as Sentiment

See also

google.cloud.language.v1beta2.EntityMention definition in proto format

Features

static

All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.

Properties

Parameter

extractSyntax

boolean

Extract syntax information.

extractEntities

boolean

Extract entities.

extractDocumentSentiment

boolean

Extract document-level sentiment.

extractEntitySentiment

boolean

Extract entities and their associated sentiment.

classifyText

boolean

Classify the full document into categories.

See also

google.cloud.language.v1beta2.AnnotateTextRequest.Features definition in proto format

PartOfSpeech

static

Represents part of speech information for a token.

Properties

Parameter

tag

number

The part of speech tag.

The number should be among the values of Tag

aspect

number

The grammatical aspect.

The number should be among the values of Aspect

case

number

The grammatical case.

The number should be among the values of Case

form

number

The grammatical form.

The number should be among the values of Form

gender

number

The grammatical gender.

The number should be among the values of Gender

mood

number

The grammatical mood.

The number should be among the values of Mood

number

number

The grammatical number.

The number should be among the values of Number

person

number

The grammatical person.

The number should be among the values of Person

proper

number

The grammatical properness.

The number should be among the values of Proper

reciprocity

number

The grammatical reciprocity.

The number should be among the values of Reciprocity

tense

number

The grammatical tense.

The number should be among the values of Tense

voice

number

The grammatical voice.

The number should be among the values of Voice

See also

google.cloud.language.v1beta2.PartOfSpeech definition in proto format

Sentence

static

Represents a sentence in the input document.

Properties

Parameter

text

Object

The sentence text.

This object should have the same structure as TextSpan

sentiment

Object

For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.

This object should have the same structure as Sentiment

See also

google.cloud.language.v1beta2.Sentence definition in proto format

Sentiment

static

Represents the feeling associated with the entire text or entities in the text.

Properties

Parameter

magnitude

number

A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).

score

number

Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

See also

google.cloud.language.v1beta2.Sentiment definition in proto format

TextSpan

static

Represents an output piece of text.

Properties

Parameter

content

string

The content of the output text.

beginOffset

number

The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.

See also

google.cloud.language.v1beta2.TextSpan definition in proto format

Token

static

Represents the smallest syntactic building block of the text.

Properties

Parameter

text

Object

The token text.

This object should have the same structure as TextSpan

partOfSpeech

Object

Parts of speech tag for this token.

This object should have the same structure as PartOfSpeech

dependencyEdge

Object

Dependency tree parse for this token.

This object should have the same structure as DependencyEdge

lemma

string

Lemma of the token.

See also

google.cloud.language.v1beta2.Token definition in proto format