I am tasked with recording the frequency of the ngrams in the argument map<string,long> reference. Below is what I have so far, just to note that clean_string just removes spaces, special characters, and makes the line lowercase.
Basically, what is suppose to happen is the ngram is suppose to be generted from my generate_ngram function and then I am suppose to compare the string using map m to find the repeats and output it as follows:
If my input is: this thin thing!! finding the n-gram which is 3
My output should be: hin:2, his:1, ing:1, int:1, ist:1, nth:1, sth:1, thi:3
I am not sure how to manipulate the elements to compare it to the map function.