Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
bebd9764
Commit
bebd9764
authored
Mar 17, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update printer
parent
2cf954ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
new_tag3_cold_start.py
eda/smart_rank/new_tag3_cold_start.py
+4
-4
No files found.
eda/smart_rank/new_tag3_cold_start.py
View file @
bebd9764
...
...
@@ -25,7 +25,7 @@ def get_result(hits):
res_list
=
[]
for
_
,
v
in
res_pair
:
res_list
.
append
(
v
)
return
merge_lists
(
res_list
)
return
merge_lists
(
*
res_list
)
keywords
=
[
...
...
@@ -285,6 +285,6 @@ def get_es_answer(keywords, version=False):
if
__name__
==
"__main__"
:
print
(
get_es_diary
(
keywords
)[:
10
]
)
print
(
get_es_tractate
(
keywords
)[:
10
]
)
print
(
get_es_answer
(
keywords
)[:
10
]
)
print
(
"diary:"
+
get_es_diary
(
keywords
)[:
10
]
+
"
\n
"
)
print
(
"tractate: "
+
get_es_tractate
(
keywords
)[:
10
]
+
"
\n
"
)
print
(
"answer: "
+
get_es_answer
(
keywords
)[:
10
]
+
"
\n
"
)
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