plot_lda_text2vec: Plot LDA models from text2vec in Google Colab

Description Usage Arguments

View source: R/text2vec.R

Description

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

Usage

1
plot_lda_text2vec(lda_model, embedded = TRUE, port = 4321)

Arguments

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.


hansquiogue/colabr documentation built on Feb. 14, 2021, 6:12 p.m.