mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
describe the use of lang
in read_values
This commit is contained in:
parent
7c12f2aca1
commit
f224b8dbba
@ -42,6 +42,9 @@ def read_values(filename, cutoff=0, lang=None):
|
||||
|
||||
If `cutoff` is greater than 0, the csv file must be sorted by value
|
||||
in descending order.
|
||||
|
||||
If `lang` is given, it will apply language-specific tokenization to the
|
||||
words that it reads.
|
||||
"""
|
||||
values = defaultdict(float)
|
||||
total = 0.
|
||||
|
Loading…
Reference in New Issue
Block a user