From 45f4074b9b93da49b7084adc5dc64a69bc3440fc Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Tue, 19 Nov 2019 13:52:48 +0100 Subject: [PATCH] fix(loader): a seed should be string, not array of words --- KoozDawa/dawa/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KoozDawa/dawa/loader.py b/KoozDawa/dawa/loader.py index 682d16c..8734aa5 100644 --- a/KoozDawa/dawa/loader.py +++ b/KoozDawa/dawa/loader.py @@ -36,7 +36,7 @@ def load_seeds(kawa=None, nb_seeds=10): chosen = choice(list(plain_kawa)) split = chosen.split(" ") nb_words = randint(1, len(split)) - seeds.append(split[:nb_words]) + seeds.append(" ".join(split[:nb_words])) return seeds @@ -54,7 +54,7 @@ def main(): lines = load_kawa("../") clean = clean_text(lines) print(clean) - print("Some seeds:\n\n") + print("Some seeds:") pprint(load_seeds(lines)) -- libgit2 0.27.0