Open navierula opened 6 years ago
for word in corpus: if word not in frequency_table: frequency_table[word] = 1 else: frequency_table[word] += 1
Remember, we want to update the count of the word in the dictionary. Otherwise, looks good and you did a great job!
Remember, we want to update the count of the word in the dictionary. Otherwise, looks good and you did a great job!