Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ClassificationCategory

import type { ClassificationCategory } from "https://googleapis.deno.dev/v1/language:v2.ts";

Represents a category returned from the text classifier.

interface ClassificationCategory {
confidence?: number;
name?: string;
severity?: number;
}

§Properties

§
confidence?: number
[src]

The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

§
name?: string
[src]

The name of the category representing the document.

§
severity?: number
[src]

Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.