[CWB] Relative frequencies in CWB
Meier-Vieracker, Simon
simon.meier at tu-berlin.de
Wed Feb 20 12:53:03 CET 2019
Hi,
I have started to work with CWB Perl API in order to calculate relative frequencies of query results grouped by certain attributes (~ i.e. Distribution function of CQPweb). My script works well (although quite slow), but I was wondering if there is a way to do this in CWB directly.
My corpus has the attribute text_year, so I can get the absolute frequencies with:
> A = "word";
> group A match text_year;
I can get the subcorpus size with
> B = []:
> group B match text_year;
and set it off against the results of "group A". But is there a way to do this in one step?
Best, Simon
More information about the CWB
mailing list