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
13456735
Commit
13456735
authored
Nov 16, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite data to file
parent
343999cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
get_data.py
personas_vector/get_data.py
+1
-2
No files found.
personas_vector/get_data.py
View file @
13456735
...
...
@@ -33,8 +33,7 @@ if __name__ == "__main__":
tractate_dict
=
{}
for
item
in
get_tractate_info_from_es
([
"id"
,
"portrait_tag_name"
]):
id
=
item
[
"_id"
]
business_tags
=
item
[
"_source"
][
"portrait_tag_name"
]
tractate_dict
[
id
]
=
","
.
join
(
business_tags
)
tractate_dict
[
id
]
=
item
[
"_source"
][
"portrait_tag_name"
]
save_dict_to_csv
(
tractate_dict
,
"personas_tractate_tags.csv"
)
print
(
len
(
tractate_dict
))
print
(
random
.
choice
(
list
(
tractate_dict
.
items
())))
...
...
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