mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
added documentation to load ranges
This commit is contained in:
parent
27ea107e6f
commit
af362480d5
@ -15,6 +15,9 @@ DATA_PATH = pathlib.Path(resource_filename('wordfreq', 'data'))
|
||||
CACHE_SIZE = 100000
|
||||
|
||||
def load_range(filename):
|
||||
"""
|
||||
Loads a file from the data path
|
||||
"""
|
||||
with (DATA_PATH / filename).open() as file:
|
||||
return file.read()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user