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;
}

§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.