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