mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
The metanl scale is not what I thought it was.
This commit is contained in:
parent
e931062b5a
commit
0d2fb21726
@ -28,8 +28,8 @@ def test_freq_examples():
|
||||
|
||||
|
||||
def test_compatibility():
|
||||
eq_(metanl_word_frequency(':|en'), 1e9)
|
||||
eq_(metanl_word_frequency(':|en', offset=1e9), 2e9)
|
||||
eq_(metanl_word_frequency('the|en'), 1e9)
|
||||
eq_(metanl_word_frequency('the|en', offset=1e9), 2e9)
|
||||
|
||||
|
||||
def _check_normalized_frequencies(wordlist, lang):
|
||||
|
@ -121,7 +121,7 @@ def wordlist_info(connection=None):
|
||||
yield {'wordlist': wordlist, 'lang': lang, 'count': count}
|
||||
|
||||
|
||||
METANL_CONSTANT = 50291582139.907646
|
||||
METANL_CONSTANT = 38328308509.73808
|
||||
def metanl_word_frequency(wordlang, offset=0.):
|
||||
"""
|
||||
Return a word's frequency in a form that matches the output of
|
||||
|
Loading…
Reference in New Issue
Block a user