Class Document.Types.Label
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
System.Object
Document.Types.Label
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.DocumentAI.V1Beta2
Assembly: Google.Cloud.DocumentAI.V1Beta2.dll
Syntax
public sealed class Label : IMessage<Document.Types.Label>, IEquatable<Document.Types.Label>, IDeepCloneable<Document.Types.Label>, IBufferMessage, IMessage
Constructors
Label()
Declaration
public Label()
Label(Document.Types.Label)
Declaration
public Label(Document.Types.Label other)
Parameters
| Type | Name | Description |
|---|---|---|
| Document.Types.Label | other |
Properties
AutomlModel
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}
Declaration
public string AutomlModel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Confidence
Confidence score between 0 and 1 for label assignment.
Declaration
public float Confidence { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Name
Name of the label.
When the label is generated from AutoML Text Classification model, this field represents the name of the category.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SourceCase
Declaration
public Document.Types.Label.SourceOneofCase SourceCase { get; }
Property Value
| Type | Description |
|---|---|
| Document.Types.Label.SourceOneofCase |