fix(loader): a seed should be string, not array of words

parent f8ba2613
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment