<br />

Classification results for a given classifier head.

**Signature:**

    export declare interface Classifications 

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [categories](https://developers.google.com/edge/api/mediapipe/js/tasks-text.classifications#classificationscategories) |   | Category\[\] | The array of predicted categories, usually sorted by descending scores, e.g., from high to low probability. |
| [headIndex](https://developers.google.com/edge/api/mediapipe/js/tasks-text.classifications#classificationsheadindex) |   | number | The index of the classifier head these categories refer to. This is useful for multi-head models. |
| [headName](https://developers.google.com/edge/api/mediapipe/js/tasks-text.classifications#classificationsheadname) |   | string | The name of the classifier head, which is the corresponding tensor metadata name. Defaults to an empty string if there is no such metadata. |

## Classifications.categories {#classificationscategories}

The array of predicted categories, usually sorted by descending scores, e.g., from high to low probability.

**Signature:**

    categories: Category[];

## Classifications.headIndex {#classificationsheadindex}

The index of the classifier head these categories refer to. This is useful for multi-head models.

**Signature:**

    headIndex: number;

## Classifications.headName {#classificationsheadname}

The name of the classifier head, which is the corresponding tensor metadata name. Defaults to an empty string if there is no such metadata.

**Signature:**

    headName: string;