Description Usage Arguments Examples
This module allows simple Bag of Words (BoW) represented corpus to be transformed into log entropy space. It implements Log Entropy Model that produces entropy-weighted logarithmic term frequency representation.
1 2 3 | model_logentropy(corpus, normalize = FALSE)
load_logentropy(file)
|
corpus |
Model as returned by |
normalize |
If |
file |
Path to a saved model. |
1 2 3 4 5 6 7 | docs <- prepare_documents(corpus)
dictionary <- corpora_dictionary(docs)
corpora <- doc2bow(dictionary, docs)
# fit model
log_entropy <- model_logentropy(corpora)
wrap(log_entropy, corpora)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.