mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
version 0.4: minor code changes, debugged database
- The database is built under Python 3.3.2, so it should correctly
implement Python 3's Unicode tricks, including special handling
of Greek lowercase letters. (Version 0.3 was supposed to do this
as well, but apparently, it didn't.)
- `word_frequency` and `iter_wordlist` can be imported from the
top level.
- The new function `random_words` supplies a string made from
random words that are sufficiently high in rank order.
Former-commit-id: 3702a7c8d0
This commit is contained in:
parent
207defe6ff
commit
b6b3a6f5f6
@ -0,0 +1,2 @@
|
||||
# Import some methods from wordfreq.query at the top level.
|
||||
from wordfreq.query import word_frequency, iter_wordlist, random_words
|
@ -5,7 +5,7 @@ DB_DIR = (os.environ.get('WORDFREQ_DATA')
|
||||
or os.path.expanduser('~/.cache/wordfreq'))
|
||||
|
||||
# When the minor version number increments, the data may change.
|
||||
VERSION = '0.3.0'
|
||||
VERSION = '0.4.0'
|
||||
MINOR_VERSION = '.'.join(VERSION.split('.')[:2])
|
||||
|
||||
# Put these options together to make a database filename.
|
||||
@ -23,7 +23,7 @@ DB_URL = os.path.join(DOWNLOAD_URL, MINOR_VERSION,
|
||||
|
||||
# How do we actually get it there? This is the path, including hostname, to give
|
||||
# to scp to upload the file.
|
||||
UPLOAD_PATH = 'baldr:/srv/wordfreq/static/'
|
||||
UPLOAD_PATH = 'baldr.lumi:/srv/wordfreq/static/'
|
||||
|
||||
# Where should raw data go? Inside the package isn't necessary a good
|
||||
# place for it, because it might be installed in the system site-packages.
|
||||
|
Loading…
Reference in New Issue
Block a user