aoiferyan commited on
Commit
0038e82
1 Parent(s): 9660f83

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. HfApi_embed_docs.R +7 -0
  2. hfApi_testing.csv +0 -0
HfApi_embed_docs.R ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ docs <- readr::read_csv("hfApi_testing.csv")
2
+
3
+ embedder <- BertopicR::bt_make_embedder_st("all-miniLM-L6-v2")
4
+
5
+ embeddings <- bt_do_embedding(embedder, docs)
6
+
7
+ embeddings %>% data.frame() %>% readr::write_csv("hfApi_testing_embeddings.csv")
hfApi_testing.csv ADDED
The diff for this file is too large to render. See raw diff