Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
strategy_embedding
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
strategy_embedding
Commits
b2efe798
Commit
b2efe798
authored
Jan 14, 2021
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save res
parent
f97a84d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tractate_sentence_similary.py
tractate_sentence_similary.py
+1
-1
No files found.
tractate_sentence_similary.py
View file @
b2efe798
...
...
@@ -85,7 +85,7 @@ def save_tractate_vector_to_redis(all_keywords_set, model):
print
(
count
,
id
,
len
(
vec
))
res
[
id
]
=
vec
if
res
:
redis_client5
.
set
(
redis_key
,
json
.
dumps
(
vec
))
redis_client5
.
set
(
redis_key
,
json
.
dumps
(
res
))
# TODO remove
redis_client5
.
expire
(
redis_key
,
60
*
60
*
24
*
3
)
...
...
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