Class Document.Types.Label (1.0.0-beta03)

public sealed class Label : IMessage<Document.Types.Label>, IEquatable<Document.Types.Label>, IDeepCloneable<Document.Types.Label>, IBufferMessage, IMessage

Label attaches schema information and/or other metadata to segments within a [Document][google.cloud.documentai.v1beta2.Document]. Multiple [Label][google.cloud.documentai.v1beta2.Document.Label]s on a single field can denote either different labels, different instances of the same label created at different times, or some combination of both.

Inheritance

Object > Document.Types.Label

Namespace

Google.Cloud.DocumentAI.V1Beta2

Assembly

Google.Cloud.DocumentAI.V1Beta2.dll

Constructors

Label()

public Label()

Label(Document.Types.Label)

public Label(Document.Types.Label other)
Parameter
NameDescription
otherDocument.Types.Label

Properties

AutomlModel

public string AutomlModel { get; set; }

Label is generated AutoML model. This field stores the full resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}

Property Value
TypeDescription
String

Confidence

public float Confidence { get; set; }

Confidence score between 0 and 1 for label assignment.

Property Value
TypeDescription
Single

Name

public string Name { get; set; }

Name of the label.

When the label is generated from AutoML Text Classification model, this field represents the name of the category.

Property Value
TypeDescription
String

SourceCase

public Document.Types.Label.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
Document.Types.Label.SourceOneofCase