Google Cloud Vision Ai V1 Client - Class EntityParsingConfig (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class EntityParsingConfig.

Configuration for parsing a tag entity class.

Generated from protobuf message google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig

Namespace

Google \ Cloud \ VisionAI \ V1 \ TagParsingConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ entity_class string

Required. The tag entity class name. This should match the class name produced by the tag entity detection model.

↳ regex string

Optional. An regular expression hint.

↳ entity_matching_strategy int

Optional. Entity matching strategy.

getEntityClass

Required. The tag entity class name. This should match the class name produced by the tag entity detection model.

Returns
Type Description
string

setEntityClass

Required. The tag entity class name. This should match the class name produced by the tag entity detection model.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegex

Optional. An regular expression hint.

Returns
Type Description
string

setRegex

Optional. An regular expression hint.

Parameter
Name Description
var string
Returns
Type Description
$this

getEntityMatchingStrategy

Optional. Entity matching strategy.

Returns
Type Description
int Enum of type EntityMatchingStrategy.

setEntityMatchingStrategy

Optional. Entity matching strategy.

Parameter
Name Description
var int

Enum of type EntityMatchingStrategy.

Returns
Type Description
$this