3.4 Frequency distributions

- frequency distribution of tokens (or their annotations) at anchor points
`> group Go matchend pos;`

set cutoff threshold with

`cut`option to reduce size of frequency table`> NP = [pos="DT"] @[pos="JJ"]? [pos="NNS?"];`

`> group NP target lemma cut 50;`

- add optional offset to anchor point, e.g. distribution of words
preceding matches
`> group NP match[-1] lemma cut 100;`

- frequencies of token/annotation pairs (using different attributes or anchor points)
`> group NP matchend word by target lemma;`

`> group Go matchend lemma by matchend pos;`

NB: despite what the command syntax and output format suggest, results are sorted by pair frequencies (not grouped by the second item); also note that the order of the two items in the output is opposite to the order in the

`group`command - you can write the output of the
`group`command to a text file (or pipe)`> group NP target lemma cut 10 > "adjectives.go";`

- new in CQP v3.4.9: use
`group by`instead of`by`for nested frequency counts`> group Go matchend lemma group by matchend pos;`

where an optional

`cut`clause applies to the individual pairs

Andrew Hardie 2017-01-17