cqp_query | R Documentation |
Using CQP queries requires a two-step procedure: At first, you execute a
query using cqp_query
. Then, cqp_dump_subcorpus
will return a
matrix with the regions of the matches for the query.
cqp_query(corpus, query, subcorpus = "QUERY")
cqp_dump_subcorpus(corpus, subcorpus = "QUERY")
cqp_subcorpus_size(corpus, subcorpus = "QUERY")
cqp_list_subcorpora(corpus)
cqp_drop_subcorpus(corpus)
corpus |
a CWB corpus |
query |
a CQP query |
subcorpus |
subcorpus name |
The cqp_query
function executes a CQP query. The
cqp_subcorpus_size
function returns the number of matches for the CQP
query. The cqp_dump_subcorpus
function will return a two-column matrix
with the left and right corpus positions of the matches for the CQP query.
Andreas Blaette, Bernard Desgraupes, Sylvain Loiseau
Evert, S. 2005. The CQP Query Language Tutorial. Available online at https://cwb.sourceforge.io/files/CWB_Encoding_Tutorial.pdf
cqp_query(corpus = "REUTERS", query = '"oil";')
cqp_subcorpus_size("REUTERS")
cqp_dump_subcorpus("REUTERS")
cqp_query(corpus = "REUTERS", query = '"crude" "oil";')
cqp_subcorpus_size("REUTERS", subcorpus = "QUERY")
cqp_dump_subcorpus("REUTERS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.