Py3 compatibility tweak

This commit is contained in:
Matthew Honnibal 2015-07-23 13:13:15 +02:00
parent d4407d8e2f
commit 6be3ee311c
1 changed files with 1 additions and 1 deletions

View File

@ -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: