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.
Implements
IMessage<Document.Types.Label>, IEquatable<Document.Types.Label>, IDeepCloneable<Document.Types.Label>, IBufferMessage, IMessageNamespace
Google.Cloud.DocumentAI.V1Beta2Assembly
Google.Cloud.DocumentAI.V1Beta2.dll
Constructors
Label()
public Label()
Label(Document.Types.Label)
public Label(Document.Types.Label other)
Parameter | |
---|---|
Name | Description |
other | Document.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 | |
---|---|
Type | Description |
String |
Confidence
public float Confidence { get; set; }
Confidence score between 0 and 1 for label assignment.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
SourceCase
public Document.Types.Label.SourceOneofCase SourceCase { get; }
Property Value | |
---|---|
Type | Description |
Document.Types.Label.SourceOneofCase |