From 459b44fc40f238c965be0c081134cbc8b214b271 Mon Sep 17 00:00:00 2001 From: Sunanda Bansal Date: Tue, 23 Jul 2019 15:21:17 -0400 Subject: [PATCH] Splitting at space specifically The function was splitting at "." (at the very least, that is the one I noticed), so I specify that each line read be split only at a space. --- src/data_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_io.py b/src/data_io.py index afea0c0..ce50331 100644 --- a/src/data_io.py +++ b/src/data_io.py @@ -11,7 +11,7 @@ def getWordmap(textfile): f = open(textfile,'r') lines = f.readlines() for (n,i) in enumerate(lines): - i=i.split() + i=i.split(" ") j = 1 v = [] while j < len(i):