mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
Merge pull request #88 from LuminosoInsight/version2.4
work with langcodes 3.0, without language_data
This commit is contained in:
commit
7318f58df9
@ -1,3 +1,8 @@
|
||||
## Version 2.4.1 (2021-02-09)
|
||||
|
||||
- Changed a log message to not try to call a language by name, to remove
|
||||
the dependency on a database of language names.
|
||||
|
||||
## Version 2.4 (2020-10-01)
|
||||
|
||||
- The Exquisite Corpus data has been updated to include Google Books Ngrams
|
||||
|
4
setup.py
4
setup.py
@ -30,12 +30,10 @@ doclines = README_contents.split("\n")
|
||||
dependencies = [
|
||||
'msgpack >= 1.0', 'langcodes >= 2.1', 'regex >= 2020.04.04'
|
||||
]
|
||||
if sys.version_info < (3, 4):
|
||||
dependencies.append('pathlib')
|
||||
|
||||
setup(
|
||||
name="wordfreq",
|
||||
version='2.4.0',
|
||||
version='2.4.1',
|
||||
maintainer='Robyn Speer',
|
||||
maintainer_email='rspeer@luminoso.com',
|
||||
url='http://github.com/LuminosoInsight/wordfreq/',
|
||||
|
@ -141,8 +141,8 @@ def get_frequency_list(lang, wordlist='best', match_cutoff=None):
|
||||
if best != lang:
|
||||
logger.warning(
|
||||
"You asked for word frequencies in language %r. Using the "
|
||||
"nearest match, which is %r (%s)."
|
||||
% (lang, best, langcodes.get(best).language_name('en'))
|
||||
"nearest match, which is %r."
|
||||
% (lang, best)
|
||||
)
|
||||
|
||||
return read_cBpack(available[best])
|
||||
|
Loading…
Reference in New Issue
Block a user