Public
Edited
Jul 23, 2023
Insert cell
Insert cell
Insert cell
tokens = reviews.map(row => extractWords(row.review));
Insert cell
Insert cell
encodings = tokens.map(words => [...words].map(word => vocab.get(word)));
Insert cell
sentiment = reviews.map(({ sentiment }) => sentiment === "positive" ? 1 : 0);
Insert cell
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