Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nlpworkers
embedrank
Commits
093e5928
Commit
093e5928
authored
Dec 13, 2019
by
Tomasz Walkowiak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small modification
parent
4215795e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
embedrank_worker.py
embedrank_worker.py
+2
-2
No files found.
embedrank_worker.py
View file @
093e5928
...
...
@@ -43,9 +43,9 @@ class EmbedRankWorker(nlp_ws.NLPWorker):
file
=
open
(
outputFile
,
'w'
)
file
.
write
(
'['
)
for
idx
in
range
(
len
(
keywords
)):
element_dict
=
{
'keyword'
:
keywords
[
idx
],
'score'
:
keyw
or
d
s
[
idx
]}
element_dict
=
{
'keyword'
:
keywords
[
idx
],
'score'
:
sc
or
e
s
[
idx
]}
file
.
write
(
str
(
element_dict
)
+
', '
)
file
.
write
(
']'
)
file
.
close
()
...
...
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