Update index.html
Browse files- index.html +13 -0
index.html
CHANGED
|
@@ -266,6 +266,19 @@
|
|
| 266 |
const coords = umap.fit(embeddings);
|
| 267 |
|
| 268 |
statusEl.textContent = "Plotting projection...";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
|
| 270 |
const layout = {
|
| 271 |
title: { text: "Labels" },
|
|
|
|
| 266 |
const coords = umap.fit(embeddings);
|
| 267 |
|
| 268 |
statusEl.textContent = "Plotting projection...";
|
| 269 |
+
const data = [{
|
| 270 |
+
type: "scattergl",
|
| 271 |
+
mode: "markers",
|
| 272 |
+
x: coords.map(p => p[0]),
|
| 273 |
+
y: coords.map(p => p[1]),
|
| 274 |
+
text: sentences,
|
| 275 |
+
hoverinfo: "text",
|
| 276 |
+
marker: {
|
| 277 |
+
color: "#1f77b4",
|
| 278 |
+
size: 6,
|
| 279 |
+
opacity: 0.8,
|
| 280 |
+
},
|
| 281 |
+
}];
|
| 282 |
|
| 283 |
const layout = {
|
| 284 |
title: { text: "Labels" },
|