# TaskConfig.Classification


```
class TaskConfig.Classification : TaskConfig
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.mlkit.genai.embedding.TaskConfig](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TaskConfig) ||
|   | ↳ | [com.google.mlkit.genai.embedding.TaskConfig.Classification](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TaskConfig.Classification) |

*** ** * ** ***

Task type for classification tasks.

Optimized to generate embeddings that help classify texts according to preset labels (e.g., sentiment analysis, spam detection).

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TaskConfig.Classification#Classification()()` |

## Public constructors

### Classification

```
Classification()
```