Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
1efb006e
Commit
1efb006e
authored
Sep 23, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extracted loading of values
parent
3aafec64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
HyperGraph.py
...mantic-linking-microservice/app/initialdemo/HyperGraph.py
+7
-5
No files found.
data-hub/semantic-linking-microservice/app/initialdemo/HyperGraph.py
View file @
1efb006e
...
@@ -8,11 +8,7 @@ cluster = []
...
@@ -8,11 +8,7 @@ cluster = []
labalvlues
=
[]
labalvlues
=
[]
def
classify
():
def
classify
():
df_nodes
=
load_values
()
with
open
(
"mult_in_out_large.json"
,
"r"
)
as
json_file
:
df_nodes
=
json
.
load
(
json_file
)
for
row
in
df_nodes
:
for
row
in
df_nodes
:
...
@@ -135,3 +131,9 @@ def classify():
...
@@ -135,3 +131,9 @@ def classify():
destclusterlabel
.
append
(
destIds
[
row
][
row2
])
destclusterlabel
.
append
(
destIds
[
row
][
row2
])
print
(
"destination labels (destination Ids): "
,
destclusterlabel
)
print
(
"destination labels (destination Ids): "
,
destclusterlabel
)
def
load_values
():
with
open
(
"mult_in_out_large.json"
,
"r"
)
as
json_file
:
df_nodes
=
json
.
load
(
json_file
)
return
df_nodes
\ No newline at end of file
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