mirror of https://github.com/explosion/spaCy.git
* Fix init_model for travis tests
This commit is contained in:
parent
09312b9353
commit
c4f20847da
|
@ -91,7 +91,7 @@ def _read_probs(loc):
|
||||||
def _read_freqs(loc, max_length=100, min_doc_freq=5, min_freq=100):
|
def _read_freqs(loc, max_length=100, min_doc_freq=5, min_freq=100):
|
||||||
if not loc.exists():
|
if not loc.exists():
|
||||||
print("Warning: Frequencies file not found")
|
print("Warning: Frequencies file not found")
|
||||||
return None, None
|
return {}, 0.0
|
||||||
counts = PreshCounter()
|
counts = PreshCounter()
|
||||||
total = 0
|
total = 0
|
||||||
for i, line in enumerate(loc.open()):
|
for i, line in enumerate(loc.open()):
|
||||||
|
|
Loading…
Reference in New Issue