From 6be3ee311c7fc54815f178e689d8b0193c47b16b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 23 Jul 2015 13:13:15 +0200 Subject: [PATCH] Py3 compatibility tweak --- 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 155ac6907..0de17bdfa 100644 --- a/bin/init_model.py +++ b/bin/init_model.py @@ -62,7 +62,7 @@ def _read_clusters(loc): else: clusters[word] = '0' # Expand clusters with re-casing - for word, cluster in clusters.items(): + for word, cluster in list(clusters.items()): if word.lower() not in clusters: clusters[word.lower()] = cluster if word.title() not in clusters: