mirror of
https://github.com/rspeer/wordfreq.git
synced 2025-01-14 21:25:58 +00:00
The metanl scale is not what I thought it was.
Former-commit-id: 0d2fb21726
This commit is contained in:
parent
351378e318
commit
773f6b9843
@ -28,8 +28,8 @@ def test_freq_examples():
|
|||||||
|
|
||||||
|
|
||||||
def test_compatibility():
|
def test_compatibility():
|
||||||
eq_(metanl_word_frequency(':|en'), 1e9)
|
eq_(metanl_word_frequency('the|en'), 1e9)
|
||||||
eq_(metanl_word_frequency(':|en', offset=1e9), 2e9)
|
eq_(metanl_word_frequency('the|en', offset=1e9), 2e9)
|
||||||
|
|
||||||
|
|
||||||
def _check_normalized_frequencies(wordlist, lang):
|
def _check_normalized_frequencies(wordlist, lang):
|
||||||
|
@ -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 = 50291582139.907646
|
METANL_CONSTANT = 38328308509.73808
|
||||||
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