mirror of https://github.com/explosion/spaCy.git
* Fix init_model
This commit is contained in:
parent
5f183098e4
commit
8e800adfbc
|
@ -89,6 +89,9 @@ def _read_probs(loc):
|
||||||
|
|
||||||
|
|
||||||
def _read_freqs(loc):
|
def _read_freqs(loc):
|
||||||
|
if not loc.exists():
|
||||||
|
print("Warning: Frequencies file not found")
|
||||||
|
return None
|
||||||
counts = PreshCounter()
|
counts = PreshCounter()
|
||||||
total = 0
|
total = 0
|
||||||
for line in loc.open():
|
for line in loc.open():
|
||||||
|
|
Loading…
Reference in New Issue