* Fix init_model for travis tests

This commit is contained in:
Matthew Honnibal 2015-07-26 14:03:30 +02:00
parent 09312b9353
commit c4f20847da
1 changed files with 1 additions and 1 deletions

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, None
return {}, 0.0
counts = PreshCounter()
total = 0
for i, line in enumerate(loc.open()):