Documents
class Documents extends Resource (View source)
The "documents" collection of methods.
Typical usage is:
$languageService = new Google\Service\CloudNaturalLanguage(...);
$documents = $languageService->documents;
Methods
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties. (documents.analyzeEntities)
Analyzes the sentiment of the provided text. (documents.analyzeSentiment)
A convenience method that provides all features in one call.
Classifies a document into categories. (documents.classifyText)
Moderates a document for harmful and sensitive categories.
Details
AnalyzeEntitiesResponse
analyzeEntities(AnalyzeEntitiesRequest $postBody, array $optParams = [])
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties. (documents.analyzeEntities)
AnalyzeSentimentResponse
analyzeSentiment(AnalyzeSentimentRequest $postBody, array $optParams = [])
Analyzes the sentiment of the provided text. (documents.analyzeSentiment)
AnnotateTextResponse
annotateText(AnnotateTextRequest $postBody, array $optParams = [])
A convenience method that provides all features in one call.
(documents.annotateText)
ClassifyTextResponse
classifyText(ClassifyTextRequest $postBody, array $optParams = [])
Classifies a document into categories. (documents.classifyText)
ModerateTextResponse
moderateText(ModerateTextRequest $postBody, array $optParams = [])
Moderates a document for harmful and sensitive categories.
(documents.moderateText)