mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix path to freqs.txt
This commit is contained in:
parent
4a0f40ec2d
commit
6047f2aa35
|
@ -152,7 +152,7 @@ def setup_vocab(src_dir, dst_dir):
|
|||
clusters = _read_clusters(src_dir / 'clusters.txt')
|
||||
probs, oov_prob = _read_probs(src_dir / 'words.sgt.prob')
|
||||
if not probs:
|
||||
probs, oov_prob = _read_freqs(src_dir / 'freqs.txt')
|
||||
probs, oov_prob = _read_freqs(src_dir / 'freqs.txt.gz')
|
||||
if not probs:
|
||||
oov_prob = 0.0
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user