You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.
# in other words, a dictionary where each part-of-speech code (POS_CODE) maps to a list of tuples, where each tuple represents a word and its frequency of occurence. The list of tuple is ordered from most frequent to least.
def test(pos_dict):
passed = True
if len(pos_dict) <= 0:
failed = True
for pos in pos_dict:
sorted_list_of_words = pos_dict[pos]
list_length = len(sorted_list_of_words)
for i in range(0 ,list_length-1):
if sorted_list_of_words[i][1] < sorted_list_of_words[i+1][1]: