1
0
mirror of https://github.com/rspeer/wordfreq.git synced 2025-01-14 05:05:59 +00:00

Turns out we need to change the metanl constant after normalizing words.

This commit is contained in:
Robyn Speer 2013-10-30 16:58:10 -04:00
parent 8f00846117
commit 4bda3e6b6f

View File

@ -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