Description Usage Arguments Value Examples
This function takes a vector of characters and calculate the raw scores required for the algorithm.
1 2 3 4 5 6 7 8 9 | calculate_textplex(
input_text,
parsed_text = NULL,
mtld_threshold = 0.72,
mtld_min_ntoken = 10,
parallel = TRUE,
.progress = TRUE,
plan = "multiprocess"
)
|
input_text |
vector of characters. |
parsed_text |
a list of dataframes. Must be parsed with spacyr::spacy_parse(pos = TRUE, dependency = TRUE, tag = TRUE) |
mtld_threshold |
Threshold for the calculation of MTLD score. |
mtld_min_ntoken |
Threhold for minimal length of a viable sentence. |
parallel |
logical, whether or not to use parallel computation. |
plan |
character, please refer to ?future::plan for other options. |
.progrss_bar |
logical, whether or not to display progress bar. Only possible when parallel = TRUE. |
tibble of raw scores
1 2 3 4 | require(spacyr)
data(fairy)
spacy_initialize(model = 'en')
fairy_rawscore <- calculate_textplex(fairy$text)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.