From c4f20847da2a70d27010b654e8368ce95cadb38d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 26 Jul 2015 14:03:30 +0200 Subject: [PATCH] * Fix init_model for travis tests --- bin/init_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/init_model.py b/bin/init_model.py index 1d6b73a12..c29a10107 100644 --- a/bin/init_model.py +++ b/bin/init_model.py @@ -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()):