Public
Edited
Jul 4, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
full_data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
complaints@1.db
SELECT model_path, use_translation, use_ner, word_count from metadata
Insert cell
Insert cell
full_data = db.query(`
WITH tmp as (
SELECT review_id, airline, country, ratings, lang, translated_text, title, date_pub
FROM reviews
)

SELECT embedding_x, embedding_y, doc_top, text, airline, country, tmp.review_id, ratings, lang, translated_text, title, date_pub
FROM ${form.select_m} m
LEFT JOIN tmp
ON m.review_id = tmp.review_id
`)
Insert cell
db = DuckDBClient.of({
reviews: FileAttachment("tripadvisor_reviews_multi_country_downsampled_trans.parquet"),
country_paraphrase_multilingual_MiniLM_L12_v2_True_False: FileAttachment("country_paraphrase_multilingual_MiniLM_L12_v2_True_False.parquet"),
country_paraphrase_multilingual_MiniLM_L12_v2_False_False: FileAttachment("country_paraphrase_multilingual_MiniLM_L12_v2_False_False.parquet"),
country_paraphrase_multilingual_MiniLM_L12_v2_False_True: FileAttachment("country_paraphrase_multilingual_MiniLM_L12_v2_False_True.parquet"),
country_paraphrase_multilingual_MiniLM_L12_v2_True_True: FileAttachment("country_paraphrase_multilingual_MiniLM_L12_v2_True_True.parquet"),
country_sentence_transformersLaBSE_False_False: FileAttachment("country_sentence_transformersLaBSE_False_False.parquet"),
country_sentence_transformersLaBSE_False_True: FileAttachment("country_sentence_transformersLaBSE_False_True.parquet"),
country_sentence_transformersLaBSE_True_False: FileAttachment("country_sentence_transformersLaBSE_True_False.parquet"),
country_sentence_transformersLaBSE_True_True: FileAttachment("country_sentence_transformersLaBSE_True_True.parquet")
})
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