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
89555e09
Commit
89555e09
authored
Jan 14, 2021
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save tags
parent
6bacb3a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tractate_sentence_similary.py
tractate_sentence_similary.py
+2
-2
No files found.
tractate_sentence_similary.py
View file @
89555e09
...
...
@@ -83,7 +83,7 @@ def save_tractate_vector_to_redis(all_keywords_set, all_tags_lst, model):
redis_key
=
"rims:tractate:sentense:vector:"
+
str
(
id
)
if
vec
:
print
(
count
,
id
,
len
(
vec
))
#
redis_client5.set(redis_key, json.dumps(vec))
redis_client5
.
set
(
redis_key
,
json
.
dumps
(
vec
))
# redis_client5.expire(redis_key, 60 * 60 * 24 * 3)
...
...
@@ -126,4 +126,4 @@ if __name__ == "__main__":
print
(
all_tags_lst
[:
5
])
save_tractate_vector_to_redis
(
all_keywords_set
,
all_tags_lst
,
model
)
#
save_tag_vector_to_redis(all_tags_lst, model)
save_tag_vector_to_redis
(
all_tags_lst
,
model
)
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