<br />

A classification category.

**Signature:**

```typescript
export declare interface Category 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [score](https://developers.google.com/edge/api/mediapipe/js/tasks-text.category.md.txt#categoryscore) |   | number | The probability score of this label category. |
| [index](https://developers.google.com/edge/api/mediapipe/js/tasks-text.category.md.txt#categoryindex) |   | number | The index of the category in the corresponding label file. |
| [categoryName](https://developers.google.com/edge/api/mediapipe/js/tasks-text.category.md.txt#categorycategoryname) |   | string | The label of this category object. Defaults to an empty string if there is no category. |
| [displayName](https://developers.google.com/edge/api/mediapipe/js/tasks-text.category.md.txt#categorydisplayname) |   | string | The display name of the label, which may be translated for different locales. For example, a label, "apple", may be translated into Spanish for display purpose, so that the `display_name` is "manzana". Defaults to an empty string if there is no display name. |

## Category.score

The probability score of this label category.

**Signature:**

```typescript
score: number;
```

## Category.index

The index of the category in the corresponding label file.

**Signature:**

```typescript
index: number;
```

## Category.categoryName

The label of this category object. Defaults to an empty string if there is no category.

**Signature:**

```typescript
categoryName: string;
```

## Category.displayName

The display name of the label, which may be translated for different locales. For example, a label, "apple", may be translated into Spanish for display purpose, so that the `display_name` is "manzana". Defaults to an empty string if there is no display name.

**Signature:**

```typescript
displayName: string;
```