try to match the wordlist metanl actually uses

Former-commit-id: 90772e33fb
This commit is contained in:
Robyn Speer 2013-10-31 15:13:22 -04:00
parent 773f6b9843
commit 313306f12e
3 changed files with 3 additions and 3 deletions

View File

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

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

View File

@ -1 +1 @@
f24577ba6807c884bca4464a8624beda68d8df79 3f7a03ee49e8f33c2526beb33d61e27968a96b39