View source: R/stabilize_estimate.R
get.estimate | R Documentation |
get.estimate
is used to return a single entropy rate
estimate for a given text.
get.estimate(text, max.length = length(text), every.word = 10)
text |
A character vector. Preferably this should be read with
|
max.length |
A numeric scalar. How many elements from
|
every.word |
A numeric scalar. "every.word=1" specifies that each word token should be used for estimation. To speed up processing only every 2nd, 3rd, xth word token could be used. Hence, every.word can be assigned any integer between 1 and the step size. |
A numeric scalar. This is the entropy rate on the given chunk of text.
PreprocessText
, read.file
, IsSubstring
data(deuparl)
est <- get.estimate(deuparl, max.length = 10000, every.word = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.