Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Google
Cloud
NaturalLanguage
Annotation
entitiesByType
Google\Cloud\NaturalLanguage\Annotation::entitiesByType PHP Method
Annotation Class Documentation
Datei anzeigen
Open project: GoogleCloudPlatform/gcloud-php
entitiesByType()
public
method
Example:
$entities = $annotation->entitiesByType('PERSON'); foreach ($entities as $entity) { echo $entity['name']; }
See also:
https://cloud.google.com/natural-language/reference/rest/v1beta1/Entity#type Entity types documentation
public
entitiesByType
(
$type
) :
array
|
null
return
array
|
null
public function entitiesByType($type) { return $this->filter($this->entities(), ['type'], $type); }
Annotation
__construct
entitiesByType
filter
info
sentiment
tokensByLabel
tokensByTag