Cloud Natural Language V2 Client - Class ModelVersion (1.0.0)

Reference documentation and code samples for the Cloud Natural Language V2 Client class ModelVersion.

The model version to use for ModerateText.

Protobuf type google.cloud.language.v2.ModerateTextRequest.ModelVersion

Namespace

Google \ Cloud \ Language \ V2 \ ModerateTextRequest

Methods

static::name

Parameter
Name
Description
value
mixed

static::value

Parameter
Name
Description
name
mixed

Constants

MODEL_VERSION_UNSPECIFIED

  Value: 0 
 

The default model version.

Generated from protobuf enum MODEL_VERSION_UNSPECIFIED = 0;

MODEL_VERSION_1

  Value: 1 
 

Use the v1 model, this model is used by default when not provided.

The v1 model only returns probability (confidence) score for each category.

Generated from protobuf enum MODEL_VERSION_1 = 1;

MODEL_VERSION_2

  Value: 2 
 

Use the v2 model.

The v2 model only returns probability (confidence) score for each category, and returns severity score for a subset of the categories.

Generated from protobuf enum MODEL_VERSION_2 = 2;

Create a Mobile Website
View Site in Mobile | Classic
Share by: