query_cqp: Query CQP from R

View source: R/cqp_interface.R

query_cqpR Documentation

Query CQP from R

Description

A convenience wrapper generating system() calls to cqp -c Requires a working installation of cwb

Usage

query_cqp(query, corpus = NULL, n = 5, path = NULL)

Arguments

query

character string with the cqp commands to be used if multiple commands are stringed together, ; has to be used as separator

corpus

character optionally provide corpus to be used

n

integer left and right context

path

name of the file to save the results to

Examples

## Not run: 
cqp_query <- '"example"'
query_cqp(cqp_query, "BROWN")

## End(Not run)


alex-raw/cwbwrapr documentation built on Oct. 23, 2022, 9:08 p.m.