DocumentClassificationConfigProperty Struct
Configuration required for a document classification model.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_comprehend as comprehend } from 'aws-cdk-lib';
const documentClassificationConfigProperty: comprehend.CfnFlywheel.DocumentClassificationConfigProperty = {
mode: 'mode',
// the properties below are optional
labels: ['labels'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_comprehend as comprehend
document_classification_config_property = comprehend.CfnFlywheel.DocumentClassificationConfigProperty(
mode="mode",
# the properties below are optional
labels=["labels"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.comprehend.*;
DocumentClassificationConfigProperty documentClassificationConfigProperty = DocumentClassificationConfigProperty.builder()
.mode("mode")
// the properties below are optional
.labels(List.of("labels"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Comprehend;
var documentClassificationConfigProperty = new DocumentClassificationConfigProperty {
Mode = "mode",
// the properties below are optional
Labels = new [] { "labels" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
documentClassificationConfigProperty := &DocumentClassificationConfigProperty{
Mode: jsii.String("mode"),
// the properties below are optional
Labels: []*string{
jsii.String("labels"),
},
}
Properties
labelsoptionalstring[]labelsoptionaltyping.List[str]labelsoptionalList<String>Labelsoptionalstring[]Labelsoptional*[]*string #One or more labels to associate with the custom classifier.
Classification mode indicates whether the documents are `MULTI_CLASS` or `MULTI_LABEL` .