There's a very detailed explanation here:
Just follow the instruction and you will get the result.
The key for the R script to work is to organize your data as required.
Take the collexeme_analysis as an example, the data goes like this:
word word_frequency_in_corpus word_frequency_in_construction
give 10000 100
offer 5000 50
In addition, you need to input the corpus size and the frequency of constructions according to the prompt of the script.
Please note the R script will not provide the data for the user
. So you have to get all the frequency information using other tools.