class QAModel
extends Model
import { QAModel } from "https://deno.land/x/bertml@v0.1.0-alpha2/mod.ts";
A model used for finding the answer within a context for inputs.
Constructors
new
QAModel(manager: ModelManager, rid: number)Methods
query(init: QAQueryInit): Promise<QAAnswer[][]>
Creates a query into the model with the given question(s) and returns the results with the n top answers.