File size: 237 Bytes
ec996db
 
 
 
 
 
 
1
2
3
4
5
6
7
docs <- readr::read_csv("hfApi_testing.csv")

embedder <- BertopicR::bt_make_embedder_st("all-miniLM-L6-v2")

embeddings <- bt_do_embedding(embedder, docs)

embeddings %>% data.frame() %>% readr::write_csv("hfApi_testing_embeddings.csv")