Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BabelZoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
BabelZoo
Commits
45f4074b
Unverified
Commit
45f4074b
authored
5 years ago
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(loader): a seed should be string, not array of words
parent
f8ba2613
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
loader.py
KoozDawa/dawa/loader.py
+2
-2
No files found.
KoozDawa/dawa/loader.py
View file @
45f4074b
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment