mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 09:51:38 +00:00
Turns out we need to change the metanl constant after normalizing words.
This commit is contained in:
parent
40102a3f63
commit
8ef11fd33c
@ -121,7 +121,7 @@ def wordlist_info(connection=None):
|
|||||||
yield {'wordlist': wordlist, 'lang': lang, 'count': count}
|
yield {'wordlist': wordlist, 'lang': lang, 'count': count}
|
||||||
|
|
||||||
|
|
||||||
METANL_CONSTANT = 50291582140.06433
|
METANL_CONSTANT = 48918335043.70308
|
||||||
def metanl_word_frequency(wordlang, offset=0.):
|
def metanl_word_frequency(wordlang, offset=0.):
|
||||||
"""
|
"""
|
||||||
Return a word's frequency in a form that matches the output of
|
Return a word's frequency in a form that matches the output of
|
||||||
|
Loading…
Reference in New Issue
Block a user