describe the use of lang in read_values

Former-commit-id: f224b8dbba
This commit is contained in:
Robyn Speer 2015-09-22 17:22:38 -04:00
parent e6e29a1c03
commit d215f79ea3

View File

@ -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 If `cutoff` is greater than 0, the csv file must be sorted by value
in descending order. in descending order.
If `lang` is given, it will apply language-specific tokenization to the
words that it reads.
""" """
values = defaultdict(float) values = defaultdict(float)
total = 0. total = 0.