mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
8ab615dde9
commit
a9a48229e0
@ -213,8 +213,9 @@ def get_frequency_dict(lang, wordlist='combined', match_cutoff=30):
|
||||
freqs = {}
|
||||
pack = get_frequency_list(lang, wordlist, match_cutoff)
|
||||
for index, bucket in enumerate(pack):
|
||||
freq = cB_to_freq(-index)
|
||||
for word in bucket:
|
||||
freqs[word] = cB_to_freq(-index)
|
||||
freqs[word] = freq
|
||||
return freqs
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user