Function calculate_frequencies calculates the number of times (not yet the relative frequency) for an ngram in the database (filtering, if need, by group or disease)
Functions to calculate total number of n-grams for the whole corpus and each group and disease
Functions to calculate the relative frequencies of the whole corpus (though just for the n-grams than appear more than once, for economy reasons) and insert them into the database
Reworked functions to calculate frequencies, resulting in a brutal increase in speed (minutes instead of days)
Now having trouble with calculating frequencies for the whole corpus: exceding the Mongodb memory limit
Trying to calculate frequencies for the whole corpus. Does not work
Function calculate_frequencies_whole_corpus working properly, though it may take too much time to calculate
Corrected errors in calculate_frequencies_whole_corpus
Memory problems solved. We can now use  calculate_frequencies_whole_corpus
Getting a more uniform code
Correcting error that created repeated documents
Eliminate special characters (except @) and links when creating n-grams
Merge pull request #11 from JuanIgnacioGil/master

Frequency calculators