From dfdd16e66bd930318d2340948160daab3dc73c39 Mon Sep 17 00:00:00 2001 From: samyak jain Date: Wed, 31 Jan 2018 11:19:31 +0530 Subject: [PATCH] Fixes #1401 , IS_SINGLE function updated --- gensim/models/phrases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/models/phrases.py b/gensim/models/phrases.py index b445c4d737..43b93001b3 100644 --- a/gensim/models/phrases.py +++ b/gensim/models/phrases.py @@ -116,7 +116,7 @@ def _is_single(obj): return True, obj_iter if temp_iter == obj: # Checking for iterator to the object - return False, obj_iter + return False, obj_iter else: # If the first item isn't a string, assume obj is a corpus return False, obj