dselivanov / text2vec

Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
http://text2vec.org
Other
849 stars 135 forks source link

Viewing saved LDAvis plot from directory in browser #327

Closed dbampoh closed 3 years ago

dbampoh commented 3 years ago

I created an LDAvis figure using the text2veec package in R. Tried but failed to save it to my local directory as the fully interactive webpage that it is.

I get either a blank page in my browser or a static when save thee figure with the following code and try to open it in my browser, from the local directory I saved it to:

DIR = "LDAvisual"
lda_model$plot(out.dir = DIR,               
               open.browser = interactive(), 
               as.gist = TRUE)
# now you can serve it from other session
servr::httd(DIR)

How can I view the fully interactive LDAvis plot that I saved from R to my directory in my browser?

dselivanov commented 3 years ago

First of all no need to crosspost. Second - this question was answered at least 2 times before - Google it