cqp_initialize | R Documentation |
CQP needs to know where to look for CWB indexed corpora. To initialize CQP,
call cqp_initialize
. To reset the registry, use the function
cqp_reset_registry
. To get the registry used by CQP, use
cqp_get_registry
. To get the initialization status, use
cqp_is_initialized
cqp_initialize(registry = Sys.getenv("CORPUS_REGISTRY"))
cqp_is_initialized()
cqp_verbosity(silent, verbose)
cqp_get_registry()
cqp_reset_registry(registry = Sys.getenv("CORPUS_REGISTRY"))
cqp_load_corpus(corpus, registry)
registry |
the registry directory |
silent |
A single |
verbose |
A single |
corpus |
ID of a CWB corpus (length-one |
cqp_load_corpus
will return a logical
value - TRUE
if corpus
has been loaded successfully, FALSE
if not.
Andreas Blaette, Bernard Desgraupes, Sylvain Loiseau
cqp_is_initialized() # check initialization status
if (!cqp_is_initialized()) cqp_initialize()
cqp_is_initialized() # check initialization status (TRUE now?)
cqp_get_registry() # get registry dir used by CQP
cqp_list_corpora() # get list of corpora
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.