* Fix init_model for travis tests

This commit is contained in:
Matthew Honnibal 2015-07-26 13:55:47 +02:00
parent 3a4c2a3276
commit 09312b9353

View File

@ -91,7 +91,7 @@ def _read_probs(loc):
def _read_freqs(loc, max_length=100, min_doc_freq=5, min_freq=100):
if not loc.exists():
print("Warning: Frequencies file not found")
return None
return None, None
counts = PreshCounter()
total = 0
for i, line in enumerate(loc.open()):