This module was written by Jørg Asmussen to wrap a CQP subprocess and allow the querying and processing of corpus data from within Python.
Wraps a CQP subprocess that can execute queries on corpora.
Creates the CQP subprocess. The path to the CQP binary can be given as the _bin_ parameter.
Executes a CQP command. The method takes as input a command string and sends it to the CQP child process (and does not expect a result from CQP).
Executes the given query with the “query lock” turned on.
Dumps named query result into table of corpus positions (with columns for beginning, ending, and the marked part of the match).
Undumps named query result from table of corpus positions
Computes frequency distribution for match strings, based on sort clause