Description Usage Arguments Value Examples
For validation purposes it is useful to test an uncollapsed and unnested term list to validate how well individual regexes are performing without iterative hierarchical processing. This function allows the user to read in an external term list file and format as a term list object made up of the individual regular expressions for each category. The regular expression maintain category names and are numbered sequentially. This list can then be modeled and passed to the validation tools to understand regular expression performance that might not be clear when one builds a larger model containing many tiers. After validating, the user can use the information to rearrange the regular expressions within categories at various tiers depending on the level of confidence associated with a regex.
1 | unnest_source_term_list(file, indices = NULL, ...)
|
file |
Path to external term list. |
indices |
Indices of the elements to retain (used to take part of a term list). |
... |
ignored. |
Returns an unnested & uncollapsed term list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(dplyr)
library(textshape)
good_cats <- system.file("termco_docs/categories.R", package = "termco")
good_cats %>%
unnest_source_term_list()
good_cats %>%
unnest_source_term_list() %>%
tidy_list('category', 'regex')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.