Allows LDA models from the text2vec package to be plotted in Google Colab. A domain is generated to view either as embedded or as a standalone link. Uses localtunnel to publicly share localhost. More information can be found here: https://localtunnel.me
1 | plot_lda_text2vec(lda_model, embedded = TRUE, port = 4321)
|
lda_model |
A LDA model object from text2vec. - LDA creation example can be found here: http://text2vec.org/topic_modeling.html#example6 - Parameters can be viewed in documentation on page 22 here: https://cran.rapporter.net/web/packages/text2vec/text2vec.pdf |
embedded |
A boolean value on whether or not an embedded HTML page is displayed. By default, it is TRUE or an embedded page is outputed. Otherwise, a link is generated. |
port |
A port number to host tunneled server. Default value is 4321. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.