cl_struc_values | R Documentation |
Structural attributes do not necessarily have values, structural attributes (such as annotations of sentences or paragraphs) may just define regions of corpus positions. Use this function to test whether an attribute has values.
cl_struc_values(corpus, s_attribute, registry = Sys.getenv("CORPUS_REGISTRY"))
corpus |
Corpus ID, a length-one |
s_attribute |
Structural attribute to check, a length-one |
registry |
The registry directory of the corpus. |
TRUE
if the attribute has values and FALSE
if not. NA
if the structural
attribute is not available.
cl_struc_values("REUTERS", "places") # TRUE - attribute has values
cl_struc_values("REUTERS", "date") # NA - attribute does not exist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.