mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 09:51:38 +00:00
updated read_freqs docs
This commit is contained in:
parent
4fe9d110e1
commit
93cd902899
@ -32,6 +32,9 @@ def read_freqs(filename, cutoff=0, lang=None):
|
|||||||
|
|
||||||
If `cutoff` is greater than 0, the csv file must be sorted by frequency
|
If `cutoff` is greater than 0, the csv file must be sorted by frequency
|
||||||
in descending order.
|
in descending order.
|
||||||
|
|
||||||
|
If lang is given, read_freqs will apply language specific preprocessing
|
||||||
|
operations.
|
||||||
"""
|
"""
|
||||||
raw_counts = defaultdict(float)
|
raw_counts = defaultdict(float)
|
||||||
total = 0.
|
total = 0.
|
||||||
|
Loading…
Reference in New Issue
Block a user