5.1 N-grams

N-grams are the combination of multiple words used together. Ngrams with N=1 are called unigrams. Similarly, bigrams (N=2), trigrams (N=3) and so on can also be used. Unigrams do not usually contain as much information as compared to bigrams and trigrams.So, extract bigrams from our comment_text using the ngrams function of the textblob library.In below output, our sentence is Logan Paul yo big day, we can see the output of the that sentence

5.2 Term Frequency

Term frequency is simply the ratio of the count of a word present in a sentence, to the length of the sentence. Therefore, we can generalize term frequency as: