Skip to main content
Module

x/bertml/mod.ts>QAQueryInit

Use common pre-trained ML models in Deno!
Latest
interface QAQueryInit
import { type QAQueryInit } from "https://deno.land/x/bertml@v0.1.0-alpha2/mod.ts";

A query for the prediction.

Properties

questionGroups: QAQuestion[]

The groups of questions to calculate for.

optional
nTopAnswers: number

The number of top answers to include (e.g. 1 will include top result).

optional
batchSize: number

The maxmimum batch size for the model forward pass.