Published
Edited
Jan 29, 2021
Insert cell
md`# Tensorflow JS MobileBERT Question Answering

Example based on code provided at: https://github.com/tensorflow/tfjs-models/tree/master/qna`
Insert cell
viewof question = html`<input type="text" value="Who is the CEO of Google?"/>`
Insert cell
// Finding the answers
answers = model.findAnswers(question, passage);
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
passage
Insert cell
viewof passage = html`<textarea rows=10 cols=150></textarea>`
Insert cell
// Load the model.
model = qna.load();
Insert cell
qna = require('@tensorflow-models/qna');
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more