language/v1 library

Cloud Natural Language API - v1

Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.

For more information, see cloud.google.com/natural-language/

Create an instance of CloudNaturalLanguageApi to access these resources:

Classes

AnalyzeEntitiesRequest
The entity analysis request message.
AnalyzeEntitiesResponse
The entity analysis response message.
AnalyzeEntitySentimentRequest
The entity-level sentiment analysis request message.
AnalyzeEntitySentimentResponse
The entity-level sentiment analysis response message.
AnalyzeSentimentRequest
The sentiment analysis request message.
AnalyzeSentimentResponse
The sentiment analysis response message.
AnalyzeSyntaxRequest
The syntax analysis request message.
AnalyzeSyntaxResponse
The syntax analysis response message.
AnnotateTextRequest
The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
AnnotateTextResponse
The text annotations response message.
ClassificationModelOptions
Model options available for classification requests.
ClassifyTextRequest
The document classification request message.
ClassifyTextResponse
The document classification response message.
CloudNaturalLanguageApi
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
DependencyEdge
Represents dependency parse tree information for a token.
Document
Represents the input to API methods.
DocumentsResource
Entity
Represents a phrase in the text that is a known entity, such as a person, an organization, or location.
EntityMention
Represents a mention for an entity in the text.
Features
All available features for sentiment, syntax, and semantic analysis.
ModerateTextRequest
The document moderation request message.
ModerateTextResponse
The document moderation response message.
PartOfSpeech
Represents part of speech information for a token.
Sentence
Represents a sentence in the input document.
Token
Represents the smallest syntactic building block of the text.
V2Model
Options for the V2 model.

Typedefs

ClassificationCategory = $ClassificationCategory
Represents a category returned from the text classifier.
Sentiment = $Sentiment
Represents the feeling associated with the entire text or entities in the text.
TextSpan = $TextSpan
Represents a text span in the input document.
V1Model = $Empty
Options for the V1 model.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.