* Fix path to freqs.txt

This commit is contained in:
Matthew Honnibal 2015-07-27 02:22:35 +02:00
parent 4a0f40ec2d
commit 6047f2aa35

View File

@ -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: