Skip to content

DocumentClassificationConfig

Source code in docs_src/capo_comprehend/types/document_classification_config.py
class DocumentClassificationConfig(TypedDict, closed=True):
    mode: "capo_comprehend.types.document_classifier_mode.DocumentClassifierMode"
    """<p>Classification mode indicates whether the documents are <code>MULTI_CLASS</code> or <code>MULTI_LABEL</code>.</p>"""
    labels: NotRequired["capo_comprehend.types.labels_list.LabelsList"]
    """<p>One or more labels to associate with the custom classifier.</p>"""

labels instance-attribute

labels: NotRequired[LabelsList]

One or more labels to associate with the custom classifier.

mode instance-attribute

Classification mode indicates whether the documents are MULTI_CLASS or MULTI_LABEL.