LanguageService class final

Provides text analysis operations such as sentiment analysis and entity recognition.

Constructors

LanguageService({required Client client})
Creates a LanguageService using client for transport.
LanguageService.fromApiKey([String? apiKey])
Creates a LanguageService that does authentication through an API key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

analyzeEntities(AnalyzeEntitiesRequest request) Future<AnalyzeEntitiesResponse>
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
analyzeSentiment(AnalyzeSentimentRequest request) Future<AnalyzeSentimentResponse>
Analyzes the sentiment of the provided text.
annotateText(AnnotateTextRequest request) Future<AnnotateTextResponse>
A convenience method that provides all features in one call.
classifyText(ClassifyTextRequest request) Future<ClassifyTextResponse>
Classifies a document into categories.
close() → void
Closes the client and cleans up any resources associated with it.
moderateText(ModerateTextRequest request) Future<ModerateTextResponse>
Moderates a document for harmful and sensitive categories.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited