mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
try to match the wordlist metanl actually uses
Former-commit-id: 90772e33fb
This commit is contained in:
parent
773f6b9843
commit
313306f12e
@ -5,7 +5,7 @@ DB_DIR = (os.environ.get('WORDFREQ_DATA')
|
|||||||
or os.path.expanduser('~/.cache/wordfreq'))
|
or os.path.expanduser('~/.cache/wordfreq'))
|
||||||
|
|
||||||
# When the minor version number increments, the data may change.
|
# When the minor version number increments, the data may change.
|
||||||
VERSION = '0.2.0'
|
VERSION = '0.3.0'
|
||||||
MINOR_VERSION = '.'.join(VERSION.split('.')[:2])
|
MINOR_VERSION = '.'.join(VERSION.split('.')[:2])
|
||||||
|
|
||||||
# Put these options together to make a database filename.
|
# Put these options together to make a database filename.
|
||||||
|
@ -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 = 38328308509.73808
|
METANL_CONSTANT = 35007147100.25307
|
||||||
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
|
||||||
|
@ -1 +1 @@
|
|||||||
f24577ba6807c884bca4464a8624beda68d8df79
|
3f7a03ee49e8f33c2526beb33d61e27968a96b39
|
Loading…
Reference in New Issue
Block a user