class AnnotateTextResponse extends Collection (View source)

Properties

protected $collection_key
protected $categoriesType
protected $categoriesDataType
protected $documentSentimentType
protected $documentSentimentDataType
protected $entitiesType
protected $entitiesDataType
string $languageCode
bool $languageSupported
protected $moderationCategoriesType
protected $moderationCategoriesDataType
protected $sentencesType
protected $sentencesDataType

Methods

setCategories($categories)

No description

setDocumentSentiment(Sentiment $documentSentiment)

No description

getDocumentSentiment()

No description

setEntities($entities)

No description

Entity[]
getEntities()

No description

setLanguageCode($languageCode)

No description

string
getLanguageCode()

No description

setLanguageSupported($languageSupported)

No description

bool
getLanguageSupported()

No description

setModerationCategories($moderationCategories)

No description

setSentences($sentences)

No description

getSentences()

No description

Details

setCategories($categories)

No description

Parameters

$categories

ClassificationCategory[] getCategories()

No description

Return Value

ClassificationCategory[]

setDocumentSentiment(Sentiment $documentSentiment)

No description

Parameters

Sentiment $documentSentiment

Sentiment getDocumentSentiment()

No description

Return Value

Sentiment

setEntities($entities)

No description

Parameters

$entities

Entity[] getEntities()

No description

Return Value

Entity[]

setLanguageCode($languageCode)

No description

Parameters

$languageCode

string getLanguageCode()

No description

Return Value

string

setLanguageSupported($languageSupported)

No description

Parameters

$languageSupported

bool getLanguageSupported()

No description

Return Value

bool

setModerationCategories($moderationCategories)

No description

Parameters

$moderationCategories

ClassificationCategory[] getModerationCategories()

No description

Return Value

ClassificationCategory[]

setSentences($sentences)

No description

Parameters

$sentences

Sentence[] getSentences()

No description

Return Value

Sentence[]