Commit 8291b5e7 authored by zahrana's avatar zahrana

Merge branch 'feature/semantic-linking-refactoring' into 'develop'

Extracted loading of values

test merge

See merge request !3
parents 3aafec64 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment