LanguageServiceGrpcClient
class LanguageServiceGrpcClient extends BaseStub
Provides text analysis operations such as sentiment analysis and entity recognition.
Methods
No description
Analyzes the sentiment of the provided text.
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
A convenience method that provides all syntax, sentiment, and entity features in one call.
Details
at line 32
__construct(string $hostname, array $opts, Channel $channel = null)
at line 42
AnalyzeSentiment(AnalyzeSentimentRequest $argument, array $metadata = [], array $options = [])
Analyzes the sentiment of the provided text.
at line 58
AnalyzeEntities(AnalyzeEntitiesRequest $argument, array $metadata = [], array $options = [])
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
at line 73
AnalyzeEntitySentiment(AnalyzeEntitySentimentRequest $argument, array $metadata = [], array $options = [])
Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
at line 89
AnalyzeSyntax(AnalyzeSyntaxRequest $argument, array $metadata = [], array $options = [])
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
at line 104
AnnotateText(AnnotateTextRequest $argument, array $metadata = [], array $options = [])
A convenience method that provides all syntax, sentiment, and entity features in one call.