Spaces:
Runtime error
Runtime error
thomashacker
commited on
Commit
•
5511f86
1
Parent(s):
053c69e
Improve graph viz
Browse files- app.py +3 -2
- support_functions.py +18 -54
- visualize_dataset.py +17 -28
- viz.html +8 -8
app.py
CHANGED
@@ -15,10 +15,11 @@ intro.subheader("Create easier access to health✨")
|
|
15 |
|
16 |
jellyfish.image("data/img/Jellymation.gif")
|
17 |
intro.markdown(
|
18 |
-
"Healthsea is a spaCy v3 pipeline that
|
|
|
19 |
)
|
20 |
intro.markdown(
|
21 |
-
"""With this app, you're able to explore the pipeline and
|
22 |
"""
|
23 |
)
|
24 |
intro.markdown(
|
|
|
15 |
|
16 |
jellyfish.image("data/img/Jellymation.gif")
|
17 |
intro.markdown(
|
18 |
+
"""Healthsea is a spaCy v3 pipeline that is capable of analyzing user-generated reviews to supplementary products by extracting their effects on health.
|
19 |
+
The analysis is based on the written-text and context from the reviews."""
|
20 |
)
|
21 |
intro.markdown(
|
22 |
+
"""With this app, you're able to explore the pipeline and its analysis on productive data. You can choose between two different apps `Visualize dataset` and `Visualize pipeline`.
|
23 |
"""
|
24 |
)
|
25 |
intro.markdown(
|
support_functions.py
CHANGED
@@ -117,69 +117,33 @@ class HealthseaSearch:
|
|
117 |
_aspect = difflib.get_close_matches("_aspect", self.conditions.keys())[0]
|
118 |
return self.conditions[_aspect]
|
119 |
|
120 |
-
# Plotting vectors (2D/3D)
|
121 |
-
def tsne_plot(self, dataset):
|
122 |
-
"Creates and TSNE model and plots it"
|
123 |
-
labels = []
|
124 |
-
tokens = []
|
125 |
-
|
126 |
-
for i in dataset:
|
127 |
-
tokens.append(np.array(i[1]))
|
128 |
-
labels.append(i[0])
|
129 |
-
|
130 |
-
if len(dataset) > 2:
|
131 |
-
tsne_model = TSNE(
|
132 |
-
perplexity=40, n_components=3, init="pca", n_iter=2500, random_state=23
|
133 |
-
)
|
134 |
-
|
135 |
-
new_values = tsne_model.fit_transform(tokens)
|
136 |
-
|
137 |
-
x = []
|
138 |
-
y = []
|
139 |
-
z = []
|
140 |
-
for value in new_values:
|
141 |
-
x.append(value[0])
|
142 |
-
y.append(value[1])
|
143 |
-
z.append(value[2])
|
144 |
-
|
145 |
-
trace = go.Scatter3d(
|
146 |
-
x=x,
|
147 |
-
y=y,
|
148 |
-
z=z,
|
149 |
-
text=labels,
|
150 |
-
textposition="top right",
|
151 |
-
mode="lines+markers+text",
|
152 |
-
marker={
|
153 |
-
"size": 10,
|
154 |
-
"opacity": 1,
|
155 |
-
"colorscale":'Viridis',
|
156 |
-
},
|
157 |
-
)
|
158 |
-
|
159 |
-
# Configure the layout.
|
160 |
-
layout = go.Layout(
|
161 |
-
margin={"l": 0, "r": 0, "b": 0, "t": 0}, font={"color": "#DF55E2", "size":20}
|
162 |
-
)
|
163 |
-
|
164 |
-
data = [trace]
|
165 |
-
|
166 |
-
return go.Figure(data=data, layout=layout)
|
167 |
-
|
168 |
def pyvis(self, vectors):
|
169 |
net = Network(height='500px', width='700px', bgcolor="#0E1117", font_color="#ffffff")
|
170 |
-
net.barnes_hut(
|
|
|
|
|
171 |
|
172 |
-
net.add_node(vectors[0][0], label=vectors[0][0], color="#4EA0DB", value=100) # node id = 1 and label = Node 1
|
173 |
|
174 |
for vector in vectors[1:]:
|
175 |
-
net.add_node(vector[0], label=vector[0], color="#FE51B9", value=70) # node id = 1 and label = Node 1
|
176 |
|
177 |
for i, vector in enumerate(vectors):
|
178 |
current_vector = vectors[i]
|
179 |
if i < len(vectors):
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
net.save_graph("viz.html")
|
185 |
HtmlFile = open("viz.html", 'r', encoding='utf-8')
|
|
|
117 |
_aspect = difflib.get_close_matches("_aspect", self.conditions.keys())[0]
|
118 |
return self.conditions[_aspect]
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
def pyvis(self, vectors):
|
121 |
net = Network(height='500px', width='700px', bgcolor="#0E1117", font_color="#ffffff")
|
122 |
+
net.barnes_hut(gravity=-2500)
|
123 |
+
net.set_edge_smooth("dynamic")
|
124 |
+
net.toggle_stabilization(False)
|
125 |
|
126 |
+
net.add_node(vectors[0][0], label=vectors[0][0], color="#4EA0DB", value=100, shape="circle") # node id = 1 and label = Node 1
|
127 |
|
128 |
for vector in vectors[1:]:
|
129 |
+
net.add_node(vector[0], label=vector[0], color="#FE51B9", value=70, shape="circle") # node id = 1 and label = Node 1
|
130 |
|
131 |
for i, vector in enumerate(vectors):
|
132 |
current_vector = vectors[i]
|
133 |
if i < len(vectors):
|
134 |
+
if i == 0:
|
135 |
+
for _vector in vectors[i+1:]:
|
136 |
+
sim = self.calculate_cosine_sim(current_vector[1],_vector[1])
|
137 |
+
net.add_edge(current_vector[0],_vector[0], weight=sim, value=sim, title=sim)
|
138 |
+
else:
|
139 |
+
for _vector in vectors[i+1:]:
|
140 |
+
sim = self.calculate_cosine_sim(current_vector[1],_vector[1])
|
141 |
+
net.add_edge(current_vector[0],_vector[0], weight=sim, value=sim/2, title=sim)
|
142 |
+
|
143 |
+
#for _vector in vectors[1:]:
|
144 |
+
# sim = self.calculate_cosine_sim(vectors[0][1],_vector[1])
|
145 |
+
# net.add_edge(vectors[0][0],_vector[0], weight=sim, value=sim*0.1, title=sim)
|
146 |
+
|
147 |
|
148 |
net.save_graph("viz.html")
|
149 |
HtmlFile = open("viz.html", 'r', encoding='utf-8')
|
visualize_dataset.py
CHANGED
@@ -52,9 +52,11 @@ def visualize_dataset():
|
|
52 |
|
53 |
# KPI
|
54 |
|
55 |
-
st.info("""This app
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
|
60 |
st.markdown("""---""")
|
@@ -63,10 +65,13 @@ def visualize_dataset():
|
|
63 |
|
64 |
kpi_products, kpi_reviews, kpi_condition, kpi_benefit = st.columns(4)
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
70 |
|
71 |
st.markdown("""---""")
|
72 |
|
@@ -96,16 +101,11 @@ def visualize_dataset():
|
|
96 |
# KPI & Alias
|
97 |
aspect_alias = search_engine.get_aspect(search)["alias"]
|
98 |
|
|
|
|
|
|
|
|
|
99 |
if len(aspect_alias) > 0:
|
100 |
-
kpi_mentions, kpi_product_mentions, kpi_alias = st.columns(3)
|
101 |
-
kpi_mentions.markdown(
|
102 |
-
kpi(search_engine.get_aspect_meta(search)["frequency"], "Mentions"),
|
103 |
-
unsafe_allow_html=True,
|
104 |
-
)
|
105 |
-
kpi_product_mentions.markdown(
|
106 |
-
kpi(len(search_engine.get_aspect(search)["products"]), "Products"),
|
107 |
-
unsafe_allow_html=True,
|
108 |
-
)
|
109 |
kpi_alias.markdown(
|
110 |
kpi(len(aspect_alias), "Similar health aspects"),
|
111 |
unsafe_allow_html=True,
|
@@ -122,17 +122,6 @@ def visualize_dataset():
|
|
122 |
#st.write(search_engine.tsne_plot(vectors))
|
123 |
search_engine.pyvis(vectors)
|
124 |
|
125 |
-
else:
|
126 |
-
kpi_mentions, kpi_product_mentions = st.columns(2)
|
127 |
-
kpi_mentions.markdown(
|
128 |
-
kpi(search_engine.get_aspect_meta(search)["frequency"], "Mentions"),
|
129 |
-
unsafe_allow_html=True,
|
130 |
-
)
|
131 |
-
kpi_product_mentions.markdown(
|
132 |
-
kpi(len(search_engine.get_aspect(search)["products"]), "Products"),
|
133 |
-
unsafe_allow_html=True,
|
134 |
-
)
|
135 |
-
|
136 |
st.markdown("""---""")
|
137 |
|
138 |
# Substances
|
@@ -141,7 +130,7 @@ def visualize_dataset():
|
|
141 |
|
142 |
# DataFrame
|
143 |
st.write(search_engine.get_substances_df(search, n))
|
144 |
-
|
145 |
kpi_substances.markdown(
|
146 |
kpi(len(search_engine.get_aspect(search)["substance"]), "Substances"),
|
147 |
unsafe_allow_html=True,
|
|
|
52 |
|
53 |
# KPI
|
54 |
|
55 |
+
st.info("""This app showcases a dataset of up to one million reviews that was analyzed by the Healthsea pipeline. You can search for any health aspect, whether it's a disease (e.g. joint pain) or a positive state of health (e.g. energy), the app will output a list of products and substances.
|
56 |
+
These products have a score which is calculated by the content of their reviews.""")
|
57 |
+
|
58 |
+
st.warning("""Please note that Healthsea is a research project and a proof-of-concept that presents a technical approach on analyzing user-generated reviews.
|
59 |
+
The results produced by Healthsea should not be used as a foundation for treating health problems and neither do we want to advocate that supplementary products are able to solve all health issues.""")
|
60 |
|
61 |
|
62 |
st.markdown("""---""")
|
|
|
65 |
|
66 |
kpi_products, kpi_reviews, kpi_condition, kpi_benefit = st.columns(4)
|
67 |
|
68 |
+
def round_to_k(value):
|
69 |
+
return str(round(value/1000,1))+"k"
|
70 |
+
|
71 |
+
kpi_products.markdown(kpi(round_to_k(len(products)), "Products"), unsafe_allow_html=True)
|
72 |
+
kpi_reviews.markdown(kpi(round_to_k(int(933240)), "Reviews"), unsafe_allow_html=True)
|
73 |
+
kpi_condition.markdown(kpi(round_to_k(len(conditions)), "Conditions"), unsafe_allow_html=True)
|
74 |
+
kpi_benefit.markdown(kpi(round_to_k(len(benefits)), "Benefits"), unsafe_allow_html=True)
|
75 |
|
76 |
st.markdown("""---""")
|
77 |
|
|
|
101 |
# KPI & Alias
|
102 |
aspect_alias = search_engine.get_aspect(search)["alias"]
|
103 |
|
104 |
+
kpi_product_mentions, kpi_alias = st.columns(2)
|
105 |
+
|
106 |
+
kpi_product_mentions.markdown(kpi(len(search_engine.get_aspect(search)["products"]), "Products"), unsafe_allow_html=True)
|
107 |
+
|
108 |
if len(aspect_alias) > 0:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
kpi_alias.markdown(
|
110 |
kpi(len(aspect_alias), "Similar health aspects"),
|
111 |
unsafe_allow_html=True,
|
|
|
122 |
#st.write(search_engine.tsne_plot(vectors))
|
123 |
search_engine.pyvis(vectors)
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
st.markdown("""---""")
|
126 |
|
127 |
# Substances
|
|
|
130 |
|
131 |
# DataFrame
|
132 |
st.write(search_engine.get_substances_df(search, n))
|
133 |
+
kpi_substances, empty = st.columns(2)
|
134 |
kpi_substances.markdown(
|
135 |
kpi(len(search_engine.get_aspect(search)["substance"]), "Substances"),
|
136 |
unsafe_allow_html=True,
|
viz.html
CHANGED
@@ -50,8 +50,8 @@
|
|
50 |
|
51 |
|
52 |
// parsing and collecting nodes and edges from the python
|
53 |
-
nodes = new vis.DataSet([{"color": "#4EA0DB", "font": {"color": "#ffffff"}, "id": "
|
54 |
-
edges = new vis.DataSet([{"from": "knee pain", "title": 0.9572226566398652, "to": "joint pain", "value": 0.09572226566398652, "weight": 0.9572226566398652}, {"from": "knee pain", "title": 0.9721691627688442, "to": "foot pain", "value": 0.09721691627688443, "weight": 0.9721691627688442}, {"from": "knee pain", "title": 0.9728595739961694, "to": "hip pain", "value": 0.09728595739961694, "weight": 0.9728595739961694}, {"from": "knee pain", "title": 0.9886381450225392, "to": "shoulder pain", "value": 0.09886381450225393, "weight": 0.9886381450225392}, {"from": "knee pain", "title": 0.9633261170891145, "to": "knee joint pain", "value": 0.09633261170891146, "weight": 0.9633261170891145}, {"from": "knee pain", "title": 0.9641970662920486, "to": "knee pains", "value": 0.09641970662920486, "weight": 0.9641970662920486}, {"from": "knee pain", "title": 0.9852088102259774, "to": "ankle pain", "value": 0.09852088102259775, "weight": 0.9852088102259774}, {"from": "knee pain", "title": 0.9775551384003314, "to": "neck pain", "value": 0.09775551384003314, "weight": 0.9775551384003314}, {"from": "knee pain", "title": 0.9527260826829039, "to": "knees pain", "value": 0.0952726082682904, "weight": 0.9527260826829039}, {"from": "knee pain", "title": 0.9668905460143599, "to": "wrist pain", "value": 0.096689054601436, "weight": 0.9668905460143599}, {"from": "knee pain", "title": 0.9506593292143222, "to": "shoulder pains", "value": 0.09506593292143223, "weight": 0.9506593292143222}, {"from": "knee pain", "title": 0.9694992428145469, "to": "forearm pain", "value": 0.0969499242814547, "weight": 0.9694992428145469}, {"from": "knee pain", "title": 0.980168245352133, "to": "leg pain", "value": 0.0980168245352133, "weight": 0.980168245352133}, {"from": "knee pain", "title": 0.9505274489621832, "to": "legs pain", "value": 0.09505274489621833, "weight": 0.9505274489621832}, {"from": "knee pain", "title": 0.9721296071055993, "to": "chest pain", "value": 0.09721296071055993, "weight": 0.9721296071055993}, {"from": "knee pain", "title": 0.9839312972552418, "to": "elbow pain", "value": 0.09839312972552418, "weight": 0.9839312972552418}, {"from": "knee pain", "title": 0.9584609544116655, "to": "spine pain", "value": 0.09584609544116655, "weight": 0.9584609544116655}, {"from": "knee pain", "title": 0.9519111501913806, "to": "finger joint pain", "value": 0.09519111501913807, "weight": 0.9519111501913806}, {"from": "knee pain", "title": 0.9609345812503135, "to": "toe pain", "value": 0.09609345812503135, "weight": 0.9609345812503135}, {"from": "knee pain", "title": 0.974981705771776, "to": "arm pain", "value": 0.0974981705771776, "weight": 0.974981705771776}, {"from": "knee pain", "title": 0.9537760229169574, "to": "hip joint pain", "value": 0.09537760229169574, "weight": 0.9537760229169574}, {"from": "knee pain", "title": 0.9545163508269806, "to": "wrist joint pain", "value": 0.09545163508269806, "weight": 0.9545163508269806}, {"from": "knee pain", "title": 0.958708042693945, "to": "head pain", "value": 0.09587080426939451, "weight": 0.958708042693945}, {"from": "knee pain", "title": 0.9545507396519165, "to": "knee swelling", "value": 0.09545507396519165, "weight": 0.9545507396519165}, {"from": "knee pain", "title": 0.9557324494770963, "to": "groin pain", "value": 0.09557324494770963, "weight": 0.9557324494770963}, {"from": "knee pain", "title": 0.952505866119859, "to": "feet pain", "value": 0.0952505866119859, "weight": 0.952505866119859}, {"from": "knee pain", "title": 0.9703174913222936, "to": "jaw pain", "value": 0.09703174913222937, "weight": 0.9703174913222936}, {"from": "knee pain", "title": 0.9529714904579305, "to": "shoulders pain", "value": 0.09529714904579306, "weight": 0.9529714904579305}, {"from": "knee pain", "title": 0.9576092078570831, "to": "tendon pain", "value": 0.09576092078570832, "weight": 0.9576092078570831}, {"from": "knee pain", "title": 0.9677445817935832, "to": "thigh pain", "value": 0.09677445817935833, "weight": 0.9677445817935832}, {"from": "knee pain", "title": 0.9506022576954113, "to": "arms pain", "value": 0.09506022576954114, "weight": 0.9506022576954113}, {"from": "knee pain", "title": 0.9606641167811792, "to": "hip knee pain", "value": 0.09606641167811793, "weight": 0.9606641167811792}, {"from": "joint pain", "title": 0.9244428549530791, "to": "foot pain", "value": 0.09244428549530792, "weight": 0.9244428549530791}, {"from": "joint pain", "title": 0.9550355502713094, "to": "hip pain", "value": 0.09550355502713094, "weight": 0.9550355502713094}, {"from": "joint pain", "title": 0.9410141085943581, "to": "shoulder pain", "value": 0.09410141085943581, "weight": 0.9410141085943581}, {"from": "joint pain", "title": 0.9483466241569839, "to": "knee joint pain", "value": 0.09483466241569839, "weight": 0.9483466241569839}, {"from": "joint pain", "title": 0.9018196317633977, "to": "knee pains", "value": 0.09018196317633978, "weight": 0.9018196317633977}, {"from": "joint pain", "title": 0.9255280047665597, "to": "ankle pain", "value": 0.09255280047665598, "weight": 0.9255280047665597}, {"from": "joint pain", "title": 0.9343239075808237, "to": "neck pain", "value": 0.09343239075808238, "weight": 0.9343239075808237}, {"from": "joint pain", "title": 0.8790642776719283, "to": "knees pain", "value": 0.08790642776719283, "weight": 0.8790642776719283}, {"from": "joint pain", "title": 0.9004978597329176, "to": "wrist pain", "value": 0.09004978597329177, "weight": 0.9004978597329176}, {"from": "joint pain", "title": 0.8838578611724158, "to": "shoulder pains", "value": 0.08838578611724159, "weight": 0.8838578611724158}, {"from": "joint pain", "title": 0.9216961499753696, "to": "forearm pain", "value": 0.09216961499753697, "weight": 0.9216961499753696}, {"from": "joint pain", "title": 0.9378619158732041, "to": "leg pain", "value": 0.09378619158732042, "weight": 0.9378619158732041}, {"from": "joint pain", "title": 0.8798352710030111, "to": "legs pain", "value": 0.0879835271003011, "weight": 0.8798352710030111}, {"from": "joint pain", "title": 0.9268068797624519, "to": "chest pain", "value": 0.0926806879762452, "weight": 0.9268068797624519}, {"from": "joint pain", "title": 0.9421524468267243, "to": "elbow pain", "value": 0.09421524468267244, "weight": 0.9421524468267243}, {"from": "joint pain", "title": 0.9352659055908789, "to": "spine pain", "value": 0.0935265905590879, "weight": 0.9352659055908789}, {"from": "joint pain", "title": 0.9198614060170138, "to": "finger joint pain", "value": 0.09198614060170139, "weight": 0.9198614060170138}, {"from": "joint pain", "title": 0.9013564915153371, "to": "toe pain", "value": 0.09013564915153371, "weight": 0.9013564915153371}, {"from": "joint pain", "title": 0.9275325362246755, "to": "arm pain", "value": 0.09275325362246756, "weight": 0.9275325362246755}, {"from": "joint pain", "title": 0.9549502924292922, "to": "hip joint pain", "value": 0.09549502924292923, "weight": 0.9549502924292922}, {"from": "joint pain", "title": 0.9315632581678858, "to": "wrist joint pain", "value": 0.09315632581678858, "weight": 0.9315632581678858}, {"from": "joint pain", "title": 0.900730404588314, "to": "head pain", "value": 0.09007304045883141, "weight": 0.900730404588314}, {"from": "joint pain", "title": 0.8877307713588201, "to": "knee swelling", "value": 0.088773077135882, "weight": 0.8877307713588201}, {"from": "joint pain", "title": 0.9005091198115411, "to": "groin pain", "value": 0.09005091198115411, "weight": 0.9005091198115411}, {"from": "joint pain", "title": 0.8808032312688185, "to": "feet pain", "value": 0.08808032312688185, "weight": 0.8808032312688185}, {"from": "joint pain", "title": 0.9239926402191895, "to": "jaw pain", "value": 0.09239926402191895, "weight": 0.9239926402191895}, {"from": "joint pain", "title": 0.8909856331557237, "to": "shoulders pain", "value": 0.08909856331557237, "weight": 0.8909856331557237}, {"from": "joint pain", "title": 0.9328608374818071, "to": "tendon pain", "value": 0.09328608374818072, "weight": 0.9328608374818071}, {"from": "joint pain", "title": 0.9030281361634531, "to": "thigh pain", "value": 0.09030281361634532, "weight": 0.9030281361634531}, {"from": "joint pain", "title": 0.8928088078677288, "to": "arms pain", "value": 0.08928088078677288, "weight": 0.8928088078677288}, {"from": "joint pain", "title": 0.911813863662729, "to": "hip knee pain", "value": 0.0911813863662729, "weight": 0.911813863662729}, {"from": "foot pain", "title": 0.9765225868892605, "to": "hip pain", "value": 0.09765225868892606, "weight": 0.9765225868892605}, {"from": "foot pain", "title": 0.9792273151854691, "to": "shoulder pain", "value": 0.09792273151854691, "weight": 0.9792273151854691}, {"from": "foot pain", "title": 0.9286379674402879, "to": "knee joint pain", "value": 0.0928637967440288, "weight": 0.9286379674402879}, {"from": "foot pain", "title": 0.9353261198489139, "to": "knee pains", "value": 0.09353261198489139, "weight": 0.9353261198489139}, {"from": "foot pain", "title": 0.9776233168176096, "to": "ankle pain", "value": 0.09776233168176096, "weight": 0.9776233168176096}, {"from": "foot pain", "title": 0.9727812442795637, "to": "neck pain", "value": 0.09727812442795637, "weight": 0.9727812442795637}, {"from": "foot pain", "title": 0.944555339614542, "to": "knees pain", "value": 0.0944555339614542, "weight": 0.944555339614542}, {"from": "foot pain", "title": 0.9711088861123324, "to": "wrist pain", "value": 0.09711088861123324, "weight": 0.9711088861123324}, {"from": "foot pain", "title": 0.939587588684261, "to": "shoulder pains", "value": 0.0939587588684261, "weight": 0.939587588684261}, {"from": "foot pain", "title": 0.9603609731886888, "to": "forearm pain", "value": 0.09603609731886889, "weight": 0.9603609731886888}, {"from": "foot pain", "title": 0.9718904961294795, "to": "leg pain", "value": 0.09718904961294796, "weight": 0.9718904961294795}, {"from": "foot pain", "title": 0.9504758589023145, "to": "legs pain", "value": 0.09504758589023145, "weight": 0.9504758589023145}, {"from": "foot pain", "title": 0.9615587345392343, "to": "chest pain", "value": 0.09615587345392344, "weight": 0.9615587345392343}, {"from": "foot pain", "title": 0.9787853743972441, "to": "elbow pain", "value": 0.09787853743972441, "weight": 0.9787853743972441}, {"from": "foot pain", "title": 0.937651685445398, "to": "spine pain", "value": 0.09376516854453981, "weight": 0.937651685445398}, {"from": "foot pain", "title": 0.9508889647837241, "to": "finger joint pain", "value": 0.09508889647837242, "weight": 0.9508889647837241}, {"from": "foot pain", "title": 0.9796083334422174, "to": "toe pain", "value": 0.09796083334422175, "weight": 0.9796083334422174}, {"from": "foot pain", "title": 0.9705865663397404, "to": "arm pain", "value": 0.09705865663397405, "weight": 0.9705865663397404}, {"from": "foot pain", "title": 0.9392344393928875, "to": "hip joint pain", "value": 0.09392344393928875, "weight": 0.9392344393928875}, {"from": "foot pain", "title": 0.938230547882996, "to": "wrist joint pain", "value": 0.09382305478829961, "weight": 0.938230547882996}, {"from": "foot pain", "title": 0.9765744427180443, "to": "head pain", "value": 0.09765744427180444, "weight": 0.9765744427180443}, {"from": "foot pain", "title": 0.9345167641132802, "to": "knee swelling", "value": 0.09345167641132802, "weight": 0.9345167641132802}, {"from": "foot pain", "title": 0.941241029199985, "to": "groin pain", "value": 0.09412410291999851, "weight": 0.941241029199985}, {"from": "foot pain", "title": 0.9666119742013214, "to": "feet pain", "value": 0.09666119742013214, "weight": 0.9666119742013214}, {"from": "foot pain", "title": 0.9545279047245246, "to": "jaw pain", "value": 0.09545279047245248, "weight": 0.9545279047245246}, {"from": "foot pain", "title": 0.9553831258090434, "to": "shoulders pain", "value": 0.09553831258090434, "weight": 0.9553831258090434}, {"from": "foot pain", "title": 0.9347354717270813, "to": "tendon pain", "value": 0.09347354717270813, "weight": 0.9347354717270813}, {"from": "foot pain", "title": 0.9698485911985145, "to": "thigh pain", "value": 0.09698485911985145, "weight": 0.9698485911985145}, {"from": "foot pain", "title": 0.9531680656665207, "to": "arms pain", "value": 0.09531680656665208, "weight": 0.9531680656665207}, {"from": "foot pain", "title": 0.9494061250229151, "to": "hip knee pain", "value": 0.09494061250229152, "weight": 0.9494061250229151}, {"from": "hip pain", "title": 0.9711427267425354, "to": "shoulder pain", "value": 0.09711427267425354, "weight": 0.9711427267425354}, {"from": "hip pain", "title": 0.9345907599389992, "to": "knee joint pain", "value": 0.09345907599389992, "weight": 0.9345907599389992}, {"from": "hip pain", "title": 0.9274696489291214, "to": "knee pains", "value": 0.09274696489291215, "weight": 0.9274696489291214}, {"from": "hip pain", "title": 0.9655439855886057, "to": "ankle pain", "value": 0.09655439855886057, "weight": 0.9655439855886057}, {"from": "hip pain", "title": 0.9678419353704563, "to": "neck pain", "value": 0.09678419353704563, "weight": 0.9678419353704563}, {"from": "hip pain", "title": 0.9259413856797637, "to": "knees pain", "value": 0.09259413856797638, "weight": 0.9259413856797637}, {"from": "hip pain", "title": 0.9477254595443746, "to": "wrist pain", "value": 0.09477254595443746, "weight": 0.9477254595443746}, {"from": "hip pain", "title": 0.9232905453753378, "to": "shoulder pains", "value": 0.09232905453753379, "weight": 0.9232905453753378}, {"from": "hip pain", "title": 0.9470434260944549, "to": "forearm pain", "value": 0.09470434260944549, "weight": 0.9470434260944549}, {"from": "hip pain", "title": 0.9607014621349613, "to": "leg pain", "value": 0.09607014621349613, "weight": 0.9607014621349613}, {"from": "hip pain", "title": 0.9321221485609331, "to": "legs pain", "value": 0.09321221485609332, "weight": 0.9321221485609331}, {"from": "hip pain", "title": 0.9598952266998407, "to": "chest pain", "value": 0.09598952266998408, "weight": 0.9598952266998407}, {"from": "hip pain", "title": 0.9641619468689703, "to": "elbow pain", "value": 0.09641619468689704, "weight": 0.9641619468689703}, {"from": "hip pain", "title": 0.9472890420243729, "to": "spine pain", "value": 0.09472890420243729, "weight": 0.9472890420243729}, {"from": "hip pain", "title": 0.9332534876906713, "to": "finger joint pain", "value": 0.09332534876906713, "weight": 0.9332534876906713}, {"from": "hip pain", "title": 0.9576198837060652, "to": "toe pain", "value": 0.09576198837060652, "weight": 0.9576198837060652}, {"from": "hip pain", "title": 0.9557595907226902, "to": "arm pain", "value": 0.09557595907226903, "weight": 0.9557595907226902}, {"from": "hip pain", "title": 0.9591815632838268, "to": "hip joint pain", "value": 0.09591815632838269, "weight": 0.9591815632838268}, {"from": "hip pain", "title": 0.9330053571784566, "to": "wrist joint pain", "value": 0.09330053571784566, "weight": 0.9330053571784566}, {"from": "hip pain", "title": 0.9559965084825179, "to": "head pain", "value": 0.0955996508482518, "weight": 0.9559965084825179}, {"from": "hip pain", "title": 0.9180364037860208, "to": "knee swelling", "value": 0.09180364037860209, "weight": 0.9180364037860208}, {"from": "hip pain", "title": 0.9302115410516891, "to": "groin pain", "value": 0.09302115410516892, "weight": 0.9302115410516891}, {"from": "hip pain", "title": 0.944103033744572, "to": "feet pain", "value": 0.09441030337445722, "weight": 0.944103033744572}, {"from": "hip pain", "title": 0.9572755096425861, "to": "jaw pain", "value": 0.09572755096425861, "weight": 0.9572755096425861}, {"from": "hip pain", "title": 0.9337271383943876, "to": "shoulders pain", "value": 0.09337271383943876, "weight": 0.9337271383943876}, {"from": "hip pain", "title": 0.9392578982613599, "to": "tendon pain", "value": 0.09392578982613599, "weight": 0.9392578982613599}, {"from": "hip pain", "title": 0.9483808390016117, "to": "thigh pain", "value": 0.09483808390016119, "weight": 0.9483808390016117}, {"from": "hip pain", "title": 0.9315065415581061, "to": "arms pain", "value": 0.09315065415581061, "weight": 0.9315065415581061}, {"from": "hip pain", "title": 0.9503195905519226, "to": "hip knee pain", "value": 0.09503195905519227, "weight": 0.9503195905519226}, {"from": "shoulder pain", "title": 0.9521893501933006, "to": "knee joint pain", "value": 0.09521893501933007, "weight": 0.9521893501933006}, {"from": "shoulder pain", "title": 0.9566654872895867, "to": "knee pains", "value": 0.09566654872895868, "weight": 0.9566654872895867}, {"from": "shoulder pain", "title": 0.9828970844035625, "to": "ankle pain", "value": 0.09828970844035625, "weight": 0.9828970844035625}, {"from": "shoulder pain", "title": 0.9836436470368274, "to": "neck pain", "value": 0.09836436470368275, "weight": 0.9836436470368274}, {"from": "shoulder pain", "title": 0.9626554604021326, "to": "knees pain", "value": 0.09626554604021326, "weight": 0.9626554604021326}, {"from": "shoulder pain", "title": 0.9730872153793826, "to": "wrist pain", "value": 0.09730872153793826, "weight": 0.9730872153793826}, {"from": "shoulder pain", "title": 0.9647189831266887, "to": "shoulder pains", "value": 0.09647189831266888, "weight": 0.9647189831266887}, {"from": "shoulder pain", "title": 0.9698591473434418, "to": "forearm pain", "value": 0.09698591473434419, "weight": 0.9698591473434418}, {"from": "shoulder pain", "title": 0.9783840702326726, "to": "leg pain", "value": 0.09783840702326727, "weight": 0.9783840702326726}, {"from": "shoulder pain", "title": 0.9647689351056669, "to": "legs pain", "value": 0.0964768935105667, "weight": 0.9647689351056669}, {"from": "shoulder pain", "title": 0.9773292765317535, "to": "chest pain", "value": 0.09773292765317536, "weight": 0.9773292765317535}, {"from": "shoulder pain", "title": 0.9819588975378853, "to": "elbow pain", "value": 0.09819588975378854, "weight": 0.9819588975378853}, {"from": "shoulder pain", "title": 0.9482290880272916, "to": "spine pain", "value": 0.09482290880272916, "weight": 0.9482290880272916}, {"from": "shoulder pain", "title": 0.9547981117051472, "to": "finger joint pain", "value": 0.09547981117051473, "weight": 0.9547981117051472}, {"from": "shoulder pain", "title": 0.9682133695058757, "to": "toe pain", "value": 0.09682133695058757, "weight": 0.9682133695058757}, {"from": "shoulder pain", "title": 0.9822669034723328, "to": "arm pain", "value": 0.09822669034723329, "weight": 0.9822669034723328}, {"from": "shoulder pain", "title": 0.9476589744645575, "to": "hip joint pain", "value": 0.09476589744645575, "weight": 0.9476589744645575}, {"from": "shoulder pain", "title": 0.9515666301461981, "to": "wrist joint pain", "value": 0.09515666301461982, "weight": 0.9515666301461981}, {"from": "shoulder pain", "title": 0.9720663018167955, "to": "head pain", "value": 0.09720663018167956, "weight": 0.9720663018167955}, {"from": "shoulder pain", "title": 0.9431566857947883, "to": "knee swelling", "value": 0.09431566857947883, "weight": 0.9431566857947883}, {"from": "shoulder pain", "title": 0.950142277762421, "to": "groin pain", "value": 0.0950142277762421, "weight": 0.950142277762421}, {"from": "shoulder pain", "title": 0.9682032479967033, "to": "feet pain", "value": 0.09682032479967034, "weight": 0.9682032479967033}, {"from": "shoulder pain", "title": 0.9718162677468243, "to": "jaw pain", "value": 0.09718162677468244, "weight": 0.9718162677468243}, {"from": "shoulder pain", "title": 0.9671710257014255, "to": "shoulders pain", "value": 0.09671710257014256, "weight": 0.9671710257014255}, {"from": "shoulder pain", "title": 0.9375217805111435, "to": "tendon pain", "value": 0.09375217805111435, "weight": 0.9375217805111435}, {"from": "shoulder pain", "title": 0.9731144163445707, "to": "thigh pain", "value": 0.09731144163445708, "weight": 0.9731144163445707}, {"from": "shoulder pain", "title": 0.9664188347107557, "to": "arms pain", "value": 0.09664188347107558, "weight": 0.9664188347107557}, {"from": "shoulder pain", "title": 0.9560211161312775, "to": "hip knee pain", "value": 0.09560211161312776, "weight": 0.9560211161312775}, {"from": "knee joint pain", "title": 0.9263229317990792, "to": "knee pains", "value": 0.09263229317990793, "weight": 0.9263229317990792}, {"from": "knee joint pain", "title": 0.9424035967806236, "to": "ankle pain", "value": 0.09424035967806237, "weight": 0.9424035967806236}, {"from": "knee joint pain", "title": 0.938048753578611, "to": "neck pain", "value": 0.0938048753578611, "weight": 0.938048753578611}, {"from": "knee joint pain", "title": 0.9049526897867184, "to": "knees pain", "value": 0.09049526897867184, "weight": 0.9049526897867184}, {"from": "knee joint pain", "title": 0.9246104269208629, "to": "wrist pain", "value": 0.0924610426920863, "weight": 0.9246104269208629}, {"from": "knee joint pain", "title": 0.9134609211733606, "to": "shoulder pains", "value": 0.09134609211733608, "weight": 0.9134609211733606}, {"from": "knee joint pain", "title": 0.9264699058947429, "to": "forearm pain", "value": 0.09264699058947429, "weight": 0.9264699058947429}, {"from": "knee joint pain", "title": 0.9421804774581902, "to": "leg pain", "value": 0.09421804774581903, "weight": 0.9421804774581902}, {"from": "knee joint pain", "title": 0.9023873376072399, "to": "legs pain", "value": 0.090238733760724, "weight": 0.9023873376072399}, {"from": "knee joint pain", "title": 0.9281290548131047, "to": "chest pain", "value": 0.09281290548131048, "weight": 0.9281290548131047}, {"from": "knee joint pain", "title": 0.9515766370534867, "to": "elbow pain", "value": 0.09515766370534867, "weight": 0.9515766370534867}, {"from": "knee joint pain", "title": 0.9223565280052053, "to": "spine pain", "value": 0.09223565280052054, "weight": 0.9223565280052053}, {"from": "knee joint pain", "title": 0.9657150729015064, "to": "finger joint pain", "value": 0.09657150729015064, "weight": 0.9657150729015064}, {"from": "knee joint pain", "title": 0.9103875244227203, "to": "toe pain", "value": 0.09103875244227204, "weight": 0.9103875244227203}, {"from": "knee joint pain", "title": 0.9387724149102374, "to": "arm pain", "value": 0.09387724149102375, "weight": 0.9387724149102374}, {"from": "knee joint pain", "title": 0.9848007504017484, "to": "hip joint pain", "value": 0.09848007504017485, "weight": 0.9848007504017484}, {"from": "knee joint pain", "title": 0.9857635153570289, "to": "wrist joint pain", "value": 0.09857635153570289, "weight": 0.9857635153570289}, {"from": "knee joint pain", "title": 0.9119922434154785, "to": "head pain", "value": 0.09119922434154785, "weight": 0.9119922434154785}, {"from": "knee joint pain", "title": 0.9162230958406594, "to": "knee swelling", "value": 0.09162230958406595, "weight": 0.9162230958406594}, {"from": "knee joint pain", "title": 0.9063462003463018, "to": "groin pain", "value": 0.09063462003463019, "weight": 0.9063462003463018}, {"from": "knee joint pain", "title": 0.8990456688786862, "to": "feet pain", "value": 0.08990456688786863, "weight": 0.8990456688786862}, {"from": "knee joint pain", "title": 0.928385738040508, "to": "jaw pain", "value": 0.0928385738040508, "weight": 0.928385738040508}, {"from": "knee joint pain", "title": 0.9086845608206318, "to": "shoulders pain", "value": 0.09086845608206318, "weight": 0.9086845608206318}, {"from": "knee joint pain", "title": 0.9245615332060653, "to": "tendon pain", "value": 0.09245615332060653, "weight": 0.9245615332060653}, {"from": "knee joint pain", "title": 0.921033959071058, "to": "thigh pain", "value": 0.09210339590710581, "weight": 0.921033959071058}, {"from": "knee joint pain", "title": 0.9104707716222256, "to": "arms pain", "value": 0.09104707716222256, "weight": 0.9104707716222256}, {"from": "knee joint pain", "title": 0.975123583185713, "to": "hip knee pain", "value": 0.0975123583185713, "weight": 0.975123583185713}, {"from": "knee pains", "title": 0.9639775644771672, "to": "ankle pain", "value": 0.09639775644771673, "weight": 0.9639775644771672}, {"from": "knee pains", "title": 0.9469091154448827, "to": "neck pain", "value": 0.09469091154448828, "weight": 0.9469091154448827}, {"from": "knee pains", "title": 0.9505151731382435, "to": "knees pain", "value": 0.09505151731382436, "weight": 0.9505151731382435}, {"from": "knee pains", "title": 0.946039694358921, "to": "wrist pain", "value": 0.09460396943589211, "weight": 0.946039694358921}, {"from": "knee pains", "title": 0.988743813632002, "to": "shoulder pains", "value": 0.0988743813632002, "weight": 0.988743813632002}, {"from": "knee pains", "title": 0.9476674709454386, "to": "forearm pain", "value": 0.09476674709454386, "weight": 0.9476674709454386}, {"from": "knee pains", "title": 0.95558506107211, "to": "leg pain", "value": 0.095558506107211, "weight": 0.95558506107211}, {"from": "knee pains", "title": 0.9491645827752934, "to": "legs pain", "value": 0.09491645827752934, "weight": 0.9491645827752934}, {"from": "knee pains", "title": 0.9471599396796755, "to": "chest pain", "value": 0.09471599396796755, "weight": 0.9471599396796755}, {"from": "knee pains", "title": 0.9533246110487995, "to": "elbow pain", "value": 0.09533246110487996, "weight": 0.9533246110487995}, {"from": "knee pains", "title": 0.9226200848481892, "to": "spine pain", "value": 0.09226200848481893, "weight": 0.9226200848481892}, {"from": "knee pains", "title": 0.9162625030332033, "to": "finger joint pain", "value": 0.09162625030332033, "weight": 0.9162625030332033}, {"from": "knee pains", "title": 0.9285666042569829, "to": "toe pain", "value": 0.09285666042569829, "weight": 0.9285666042569829}, {"from": "knee pains", "title": 0.936617794618232, "to": "arm pain", "value": 0.0936617794618232, "weight": 0.936617794618232}, {"from": "knee pains", "title": 0.9066708241300527, "to": "hip joint pain", "value": 0.09066708241300528, "weight": 0.9066708241300527}, {"from": "knee pains", "title": 0.9254280419027997, "to": "wrist joint pain", "value": 0.09254280419027998, "weight": 0.9254280419027997}, {"from": "knee pains", "title": 0.9270419677392705, "to": "head pain", "value": 0.09270419677392705, "weight": 0.9270419677392705}, {"from": "knee pains", "title": 0.9536675560519728, "to": "knee swelling", "value": 0.09536675560519729, "weight": 0.9536675560519728}, {"from": "knee pains", "title": 0.945144504971953, "to": "groin pain", "value": 0.09451445049719531, "weight": 0.945144504971953}, {"from": "knee pains", "title": 0.9415776292791985, "to": "feet pain", "value": 0.09415776292791986, "weight": 0.9415776292791985}, {"from": "knee pains", "title": 0.9438879831537006, "to": "jaw pain", "value": 0.09438879831537006, "weight": 0.9438879831537006}, {"from": "knee pains", "title": 0.9428449501318051, "to": "shoulders pain", "value": 0.09428449501318052, "weight": 0.9428449501318051}, {"from": "knee pains", "title": 0.9276315131750097, "to": "tendon pain", "value": 0.09276315131750097, "weight": 0.9276315131750097}, {"from": "knee pains", "title": 0.9411669479983473, "to": "thigh pain", "value": 0.09411669479983474, "weight": 0.9411669479983473}, {"from": "knee pains", "title": 0.9306700951131796, "to": "arms pain", "value": 0.09306700951131797, "weight": 0.9306700951131796}, {"from": "knee pains", "title": 0.9270751635927118, "to": "hip knee pain", "value": 0.09270751635927119, "weight": 0.9270751635927118}, {"from": "ankle pain", "title": 0.977406182756514, "to": "neck pain", "value": 0.0977406182756514, "weight": 0.977406182756514}, {"from": "ankle pain", "title": 0.959027911867842, "to": "knees pain", "value": 0.0959027911867842, "weight": 0.959027911867842}, {"from": "ankle pain", "title": 0.9822607710152297, "to": "wrist pain", "value": 0.09822607710152298, "weight": 0.9822607710152297}, {"from": "ankle pain", "title": 0.9597676288731048, "to": "shoulder pains", "value": 0.0959767628873105, "weight": 0.9597676288731048}, {"from": "ankle pain", "title": 0.9762695255467523, "to": "forearm pain", "value": 0.09762695255467524, "weight": 0.9762695255467523}, {"from": "ankle pain", "title": 0.9737610775951157, "to": "leg pain", "value": 0.09737610775951157, "weight": 0.9737610775951157}, {"from": "ankle pain", "title": 0.9626020599413704, "to": "legs pain", "value": 0.09626020599413704, "weight": 0.9626020599413704}, {"from": "ankle pain", "title": 0.9706545905190574, "to": "chest pain", "value": 0.09706545905190575, "weight": 0.9706545905190574}, {"from": "ankle pain", "title": 0.9826988378789171, "to": "elbow pain", "value": 0.09826988378789171, "weight": 0.9826988378789171}, {"from": "ankle pain", "title": 0.9565137631153429, "to": "spine pain", "value": 0.0956513763115343, "weight": 0.9565137631153429}, {"from": "ankle pain", "title": 0.9510120682061967, "to": "finger joint pain", "value": 0.09510120682061968, "weight": 0.9510120682061967}, {"from": "ankle pain", "title": 0.9782125119661536, "to": "toe pain", "value": 0.09782125119661536, "weight": 0.9782125119661536}, {"from": "ankle pain", "title": 0.974668657775355, "to": "arm pain", "value": 0.09746686577753551, "weight": 0.974668657775355}, {"from": "ankle pain", "title": 0.9356875959847665, "to": "hip joint pain", "value": 0.09356875959847666, "weight": 0.9356875959847665}, {"from": "ankle pain", "title": 0.9497147550489982, "to": "wrist joint pain", "value": 0.09497147550489982, "weight": 0.9497147550489982}, {"from": "ankle pain", "title": 0.9711031807727455, "to": "head pain", "value": 0.09711031807727455, "weight": 0.9711031807727455}, {"from": "ankle pain", "title": 0.9622232055165337, "to": "knee swelling", "value": 0.09622232055165338, "weight": 0.9622232055165337}, {"from": "ankle pain", "title": 0.9655126707685544, "to": "groin pain", "value": 0.09655126707685545, "weight": 0.9655126707685544}, {"from": "ankle pain", "title": 0.9649271918351312, "to": "feet pain", "value": 0.09649271918351313, "weight": 0.9649271918351312}, {"from": "ankle pain", "title": 0.9689612931621773, "to": "jaw pain", "value": 0.09689612931621773, "weight": 0.9689612931621773}, {"from": "ankle pain", "title": 0.9642774948913703, "to": "shoulders pain", "value": 0.09642774948913703, "weight": 0.9642774948913703}, {"from": "ankle pain", "title": 0.9582954693667495, "to": "tendon pain", "value": 0.09582954693667495, "weight": 0.9582954693667495}, {"from": "ankle pain", "title": 0.9726136307459619, "to": "thigh pain", "value": 0.0972613630745962, "weight": 0.9726136307459619}, {"from": "ankle pain", "title": 0.9545940970081181, "to": "arms pain", "value": 0.09545940970081182, "weight": 0.9545940970081181}, {"from": "ankle pain", "title": 0.950721430458893, "to": "hip knee pain", "value": 0.0950721430458893, "weight": 0.950721430458893}, {"from": "neck pain", "title": 0.9672924165812996, "to": "knees pain", "value": 0.09672924165812996, "weight": 0.9672924165812996}, {"from": "neck pain", "title": 0.9793482670937735, "to": "wrist pain", "value": 0.09793482670937737, "weight": 0.9793482670937735}, {"from": "neck pain", "title": 0.9508347905001675, "to": "shoulder pains", "value": 0.09508347905001675, "weight": 0.9508347905001675}, {"from": "neck pain", "title": 0.9818506154847781, "to": "forearm pain", "value": 0.09818506154847782, "weight": 0.9818506154847781}, {"from": "neck pain", "title": 0.9683534286463432, "to": "leg pain", "value": 0.09683534286463433, "weight": 0.9683534286463432}, {"from": "neck pain", "title": 0.9775512140317734, "to": "legs pain", "value": 0.09775512140317734, "weight": 0.9775512140317734}, {"from": "neck pain", "title": 0.9865609221412245, "to": "chest pain", "value": 0.09865609221412246, "weight": 0.9865609221412245}, {"from": "neck pain", "title": 0.9769232673224189, "to": "elbow pain", "value": 0.09769232673224189, "weight": 0.9769232673224189}, {"from": "neck pain", "title": 0.9661183708950322, "to": "spine pain", "value": 0.09661183708950322, "weight": 0.9661183708950322}, {"from": "neck pain", "title": 0.9598308487087811, "to": "finger joint pain", "value": 0.09598308487087812, "weight": 0.9598308487087811}, {"from": "neck pain", "title": 0.9719268878368105, "to": "toe pain", "value": 0.09719268878368105, "weight": 0.9719268878368105}, {"from": "neck pain", "title": 0.9737060730188096, "to": "arm pain", "value": 0.09737060730188096, "weight": 0.9737060730188096}, {"from": "neck pain", "title": 0.9386109061257858, "to": "hip joint pain", "value": 0.09386109061257858, "weight": 0.9386109061257858}, {"from": "neck pain", "title": 0.9482645211841543, "to": "wrist joint pain", "value": 0.09482645211841544, "weight": 0.9482645211841543}, {"from": "neck pain", "title": 0.9683937180300733, "to": "head pain", "value": 0.09683937180300733, "weight": 0.9683937180300733}, {"from": "neck pain", "title": 0.9523903661030052, "to": "knee swelling", "value": 0.09523903661030053, "weight": 0.9523903661030052}, {"from": "neck pain", "title": 0.9653601697396974, "to": "groin pain", "value": 0.09653601697396974, "weight": 0.9653601697396974}, {"from": "neck pain", "title": 0.9691757438470099, "to": "feet pain", "value": 0.096917574384701, "weight": 0.9691757438470099}, {"from": "neck pain", "title": 0.9856342025472193, "to": "jaw pain", "value": 0.09856342025472194, "weight": 0.9856342025472193}, {"from": "neck pain", "title": 0.9771587122722645, "to": "shoulders pain", "value": 0.09771587122722646, "weight": 0.9771587122722645}, {"from": "neck pain", "title": 0.9522111919189334, "to": "tendon pain", "value": 0.09522111919189336, "weight": 0.9522111919189334}, {"from": "neck pain", "title": 0.9820532855165307, "to": "thigh pain", "value": 0.09820532855165308, "weight": 0.9820532855165307}, {"from": "neck pain", "title": 0.9673576961924256, "to": "arms pain", "value": 0.09673576961924257, "weight": 0.9673576961924256}, {"from": "neck pain", "title": 0.9432713641251431, "to": "hip knee pain", "value": 0.09432713641251432, "weight": 0.9432713641251431}, {"from": "knees pain", "title": 0.9638324357558592, "to": "wrist pain", "value": 0.09638324357558592, "weight": 0.9638324357558592}, {"from": "knees pain", "title": 0.9545983018524358, "to": "shoulder pains", "value": 0.09545983018524358, "weight": 0.9545983018524358}, {"from": "knees pain", "title": 0.9626500817688562, "to": "forearm pain", "value": 0.09626500817688563, "weight": 0.9626500817688562}, {"from": "knees pain", "title": 0.9462213554007316, "to": "leg pain", "value": 0.09462213554007316, "weight": 0.9462213554007316}, {"from": "knees pain", "title": 0.9849636215279198, "to": "legs pain", "value": 0.09849636215279199, "weight": 0.9849636215279198}, {"from": "knees pain", "title": 0.9609640119482817, "to": "chest pain", "value": 0.09609640119482818, "weight": 0.9609640119482817}, {"from": "knees pain", "title": 0.9527651415629245, "to": "elbow pain", "value": 0.09527651415629246, "weight": 0.9527651415629245}, {"from": "knees pain", "title": 0.9358695189148201, "to": "spine pain", "value": 0.09358695189148201, "weight": 0.9358695189148201}, {"from": "knees pain", "title": 0.9280945677524419, "to": "finger joint pain", "value": 0.0928094567752442, "weight": 0.9280945677524419}, {"from": "knees pain", "title": 0.9467810563133677, "to": "toe pain", "value": 0.09467810563133677, "weight": 0.9467810563133677}, {"from": "knees pain", "title": 0.9533145949985291, "to": "arm pain", "value": 0.09533145949985292, "weight": 0.9533145949985291}, {"from": "knees pain", "title": 0.8914714928207793, "to": "hip joint pain", "value": 0.08914714928207794, "weight": 0.8914714928207793}, {"from": "knees pain", "title": 0.9201644895203362, "to": "wrist joint pain", "value": 0.09201644895203363, "weight": 0.9201644895203362}, {"from": "knees pain", "title": 0.9434691623916788, "to": "head pain", "value": 0.09434691623916788, "weight": 0.9434691623916788}, {"from": "knees pain", "title": 0.9408028193252645, "to": "knee swelling", "value": 0.09408028193252646, "weight": 0.9408028193252645}, {"from": "knees pain", "title": 0.9575479550946338, "to": "groin pain", "value": 0.09575479550946338, "weight": 0.9575479550946338}, {"from": "knees pain", "title": 0.9713357559743441, "to": "feet pain", "value": 0.09713357559743441, "weight": 0.9713357559743441}, {"from": "knees pain", "title": 0.9600390220705248, "to": "jaw pain", "value": 0.09600390220705249, "weight": 0.9600390220705248}, {"from": "knees pain", "title": 0.981911841050703, "to": "shoulders pain", "value": 0.0981911841050703, "weight": 0.981911841050703}, {"from": "knees pain", "title": 0.9229445819705352, "to": "tendon pain", "value": 0.09229445819705352, "weight": 0.9229445819705352}, {"from": "knees pain", "title": 0.9654971812420263, "to": "thigh pain", "value": 0.09654971812420264, "weight": 0.9654971812420263}, {"from": "knees pain", "title": 0.9719853681651179, "to": "arms pain", "value": 0.0971985368165118, "weight": 0.9719853681651179}, {"from": "knees pain", "title": 0.9170842854082369, "to": "hip knee pain", "value": 0.0917084285408237, "weight": 0.9170842854082369}, {"from": "wrist pain", "title": 0.949799310395632, "to": "shoulder pains", "value": 0.0949799310395632, "weight": 0.949799310395632}, {"from": "wrist pain", "title": 0.9729220209267059, "to": "forearm pain", "value": 0.09729220209267059, "weight": 0.9729220209267059}, {"from": "wrist pain", "title": 0.9552323602594229, "to": "leg pain", "value": 0.0955232360259423, "weight": 0.9552323602594229}, {"from": "wrist pain", "title": 0.9658552346564264, "to": "legs pain", "value": 0.09658552346564264, "weight": 0.9658552346564264}, {"from": "wrist pain", "title": 0.9648405599025256, "to": "chest pain", "value": 0.09648405599025256, "weight": 0.9648405599025256}, {"from": "wrist pain", "title": 0.9715050694341938, "to": "elbow pain", "value": 0.09715050694341938, "weight": 0.9715050694341938}, {"from": "wrist pain", "title": 0.9465304504065568, "to": "spine pain", "value": 0.09465304504065569, "weight": 0.9465304504065568}, {"from": "wrist pain", "title": 0.959773649221593, "to": "finger joint pain", "value": 0.0959773649221593, "weight": 0.959773649221593}, {"from": "wrist pain", "title": 0.980588358280687, "to": "toe pain", "value": 0.09805883582806871, "weight": 0.980588358280687}, {"from": "wrist pain", "title": 0.9736639104330056, "to": "arm pain", "value": 0.09736639104330057, "weight": 0.9736639104330056}, {"from": "wrist pain", "title": 0.9182608147762098, "to": "hip joint pain", "value": 0.09182608147762099, "weight": 0.9182608147762098}, {"from": "wrist pain", "title": 0.9523178408851336, "to": "wrist joint pain", "value": 0.09523178408851336, "weight": 0.9523178408851336}, {"from": "wrist pain", "title": 0.9647475240008758, "to": "head pain", "value": 0.09647475240008759, "weight": 0.9647475240008758}, {"from": "wrist pain", "title": 0.9479169955459422, "to": "knee swelling", "value": 0.09479169955459422, "weight": 0.9479169955459422}, {"from": "wrist pain", "title": 0.9581447969065312, "to": "groin pain", "value": 0.09581447969065313, "weight": 0.9581447969065312}, {"from": "wrist pain", "title": 0.9631642961352664, "to": "feet pain", "value": 0.09631642961352666, "weight": 0.9631642961352664}, {"from": "wrist pain", "title": 0.9646123041522913, "to": "jaw pain", "value": 0.09646123041522914, "weight": 0.9646123041522913}, {"from": "wrist pain", "title": 0.9725592295514994, "to": "shoulders pain", "value": 0.09725592295514995, "weight": 0.9725592295514994}, {"from": "wrist pain", "title": 0.9392335738779064, "to": "tendon pain", "value": 0.09392335738779065, "weight": 0.9392335738779064}, {"from": "wrist pain", "title": 0.9723995051696408, "to": "thigh pain", "value": 0.09723995051696409, "weight": 0.9723995051696408}, {"from": "wrist pain", "title": 0.9597984482693789, "to": "arms pain", "value": 0.09597984482693789, "weight": 0.9597984482693789}, {"from": "wrist pain", "title": 0.9365277869982231, "to": "hip knee pain", "value": 0.09365277869982232, "weight": 0.9365277869982231}, {"from": "shoulder pains", "title": 0.945223234834768, "to": "forearm pain", "value": 0.0945223234834768, "weight": 0.945223234834768}, {"from": "shoulder pains", "title": 0.9505739010794246, "to": "leg pain", "value": 0.09505739010794247, "weight": 0.9505739010794246}, {"from": "shoulder pains", "title": 0.9596752768231332, "to": "legs pain", "value": 0.09596752768231333, "weight": 0.9596752768231332}, {"from": "shoulder pains", "title": 0.9502366210184471, "to": "chest pain", "value": 0.09502366210184471, "weight": 0.9502366210184471}, {"from": "shoulder pains", "title": 0.9485384598385039, "to": "elbow pain", "value": 0.0948538459838504, "weight": 0.9485384598385039}, {"from": "shoulder pains", "title": 0.9109221859695653, "to": "spine pain", "value": 0.09109221859695654, "weight": 0.9109221859695653}, {"from": "shoulder pains", "title": 0.9182199532053208, "to": "finger joint pain", "value": 0.09182199532053209, "weight": 0.9182199532053208}, {"from": "shoulder pains", "title": 0.9339205178186287, "to": "toe pain", "value": 0.09339205178186288, "weight": 0.9339205178186287}, {"from": "shoulder pains", "title": 0.9410234662452706, "to": "arm pain", "value": 0.09410234662452706, "weight": 0.9410234662452706}, {"from": "shoulder pains", "title": 0.9000161478092288, "to": "hip joint pain", "value": 0.09000161478092289, "weight": 0.9000161478092288}, {"from": "shoulder pains", "title": 0.9208719814159075, "to": "wrist joint pain", "value": 0.09208719814159076, "weight": 0.9208719814159075}, {"from": "shoulder pains", "title": 0.9378390854244588, "to": "head pain", "value": 0.09378390854244589, "weight": 0.9378390854244588}, {"from": "shoulder pains", "title": 0.9410364615373106, "to": "knee swelling", "value": 0.09410364615373107, "weight": 0.9410364615373106}, {"from": "shoulder pains", "title": 0.9368842785084105, "to": "groin pain", "value": 0.09368842785084106, "weight": 0.9368842785084105}, {"from": "shoulder pains", "title": 0.9537732102864127, "to": "feet pain", "value": 0.09537732102864127, "weight": 0.9537732102864127}, {"from": "shoulder pains", "title": 0.9437876089850623, "to": "jaw pain", "value": 0.09437876089850623, "weight": 0.9437876089850623}, {"from": "shoulder pains", "title": 0.9530573758431787, "to": "shoulders pain", "value": 0.09530573758431787, "weight": 0.9530573758431787}, {"from": "shoulder pains", "title": 0.9059765361093626, "to": "tendon pain", "value": 0.09059765361093626, "weight": 0.9059765361093626}, {"from": "shoulder pains", "title": 0.9444244312763967, "to": "thigh pain", "value": 0.09444244312763968, "weight": 0.9444244312763967}, {"from": "shoulder pains", "title": 0.9430472727416418, "to": "arms pain", "value": 0.09430472727416418, "weight": 0.9430472727416418}, {"from": "shoulder pains", "title": 0.9210921467091209, "to": "hip knee pain", "value": 0.0921092146709121, "weight": 0.9210921467091209}, {"from": "forearm pain", "title": 0.9619758100578201, "to": "leg pain", "value": 0.09619758100578202, "weight": 0.9619758100578201}, {"from": "forearm pain", "title": 0.9709143546575604, "to": "legs pain", "value": 0.09709143546575605, "weight": 0.9709143546575604}, {"from": "forearm pain", "title": 0.9759055227306078, "to": "chest pain", "value": 0.0975905522730608, "weight": 0.9759055227306078}, {"from": "forearm pain", "title": 0.9782258794531976, "to": "elbow pain", "value": 0.09782258794531977, "weight": 0.9782258794531976}, {"from": "forearm pain", "title": 0.9715261110478842, "to": "spine pain", "value": 0.09715261110478843, "weight": 0.9715261110478842}, {"from": "forearm pain", "title": 0.9454427311689111, "to": "finger joint pain", "value": 0.09454427311689112, "weight": 0.9454427311689111}, {"from": "forearm pain", "title": 0.9664716501516553, "to": "toe pain", "value": 0.09664716501516553, "weight": 0.9664716501516553}, {"from": "forearm pain", "title": 0.9621392836849765, "to": "arm pain", "value": 0.09621392836849765, "weight": 0.9621392836849765}, {"from": "forearm pain", "title": 0.9177144301324471, "to": "hip joint pain", "value": 0.09177144301324472, "weight": 0.9177144301324471}, {"from": "forearm pain", "title": 0.9380354504609595, "to": "wrist joint pain", "value": 0.09380354504609595, "weight": 0.9380354504609595}, {"from": "forearm pain", "title": 0.951180992994524, "to": "head pain", "value": 0.0951180992994524, "weight": 0.951180992994524}, {"from": "forearm pain", "title": 0.9670473647489252, "to": "knee swelling", "value": 0.09670473647489253, "weight": 0.9670473647489252}, {"from": "forearm pain", "title": 0.9746439955531454, "to": "groin pain", "value": 0.09746439955531455, "weight": 0.9746439955531454}, {"from": "forearm pain", "title": 0.9592219366748752, "to": "feet pain", "value": 0.09592219366748753, "weight": 0.9592219366748752}, {"from": "forearm pain", "title": 0.9795842949417067, "to": "jaw pain", "value": 0.09795842949417068, "weight": 0.9795842949417067}, {"from": "forearm pain", "title": 0.9715326298433554, "to": "shoulders pain", "value": 0.09715326298433555, "weight": 0.9715326298433554}, {"from": "forearm pain", "title": 0.9691400537518322, "to": "tendon pain", "value": 0.09691400537518323, "weight": 0.9691400537518322}, {"from": "forearm pain", "title": 0.9795187552832302, "to": "thigh pain", "value": 0.09795187552832302, "weight": 0.9795187552832302}, {"from": "forearm pain", "title": 0.953498310602448, "to": "arms pain", "value": 0.0953498310602448, "weight": 0.953498310602448}, {"from": "forearm pain", "title": 0.9268550315691563, "to": "hip knee pain", "value": 0.09268550315691564, "weight": 0.9268550315691563}, {"from": "leg pain", "title": 0.9541643847424695, "to": "legs pain", "value": 0.09541643847424695, "weight": 0.9541643847424695}, {"from": "leg pain", "title": 0.9713398480185091, "to": "chest pain", "value": 0.09713398480185093, "weight": 0.9713398480185091}, {"from": "leg pain", "title": 0.9721573319936931, "to": "elbow pain", "value": 0.09721573319936933, "weight": 0.9721573319936931}, {"from": "leg pain", "title": 0.9357361818132721, "to": "spine pain", "value": 0.09357361818132721, "weight": 0.9357361818132721}, {"from": "leg pain", "title": 0.9332942452880222, "to": "finger joint pain", "value": 0.09332942452880222, "weight": 0.9332942452880222}, {"from": "leg pain", "title": 0.9514274820763883, "to": "toe pain", "value": 0.09514274820763884, "weight": 0.9514274820763883}, {"from": "leg pain", "title": 0.9606646410946484, "to": "arm pain", "value": 0.09606646410946484, "weight": 0.9606646410946484}, {"from": "leg pain", "title": 0.9355530208813116, "to": "hip joint pain", "value": 0.09355530208813118, "weight": 0.9355530208813116}, {"from": "leg pain", "title": 0.933355200628566, "to": "wrist joint pain", "value": 0.09333552006285661, "weight": 0.933355200628566}, {"from": "leg pain", "title": 0.9565597817723416, "to": "head pain", "value": 0.09565597817723416, "weight": 0.9565597817723416}, {"from": "leg pain", "title": 0.9444765348706768, "to": "knee swelling", "value": 0.09444765348706768, "weight": 0.9444765348706768}, {"from": "leg pain", "title": 0.9466852512895203, "to": "groin pain", "value": 0.09466852512895203, "weight": 0.9466852512895203}, {"from": "leg pain", "title": 0.9492482921811296, "to": "feet pain", "value": 0.09492482921811296, "weight": 0.9492482921811296}, {"from": "leg pain", "title": 0.9634354213375959, "to": "jaw pain", "value": 0.09634354213375959, "weight": 0.9634354213375959}, {"from": "leg pain", "title": 0.9444286872086972, "to": "shoulders pain", "value": 0.09444286872086972, "weight": 0.9444286872086972}, {"from": "leg pain", "title": 0.9426470129251054, "to": "tendon pain", "value": 0.09426470129251055, "weight": 0.9426470129251054}, {"from": "leg pain", "title": 0.9677700376115832, "to": "thigh pain", "value": 0.09677700376115833, "weight": 0.9677700376115832}, {"from": "leg pain", "title": 0.9401820772044885, "to": "arms pain", "value": 0.09401820772044886, "weight": 0.9401820772044885}, {"from": "leg pain", "title": 0.9423777956126418, "to": "hip knee pain", "value": 0.09423777956126418, "weight": 0.9423777956126418}, {"from": "legs pain", "title": 0.9733620847225264, "to": "chest pain", "value": 0.09733620847225265, "weight": 0.9733620847225264}, {"from": "legs pain", "title": 0.9525044728987481, "to": "elbow pain", "value": 0.0952504472898748, "weight": 0.9525044728987481}, {"from": "legs pain", "title": 0.9368867278653429, "to": "spine pain", "value": 0.0936886727865343, "weight": 0.9368867278653429}, {"from": "legs pain", "title": 0.9309728273215488, "to": "finger joint pain", "value": 0.0930972827321549, "weight": 0.9309728273215488}, {"from": "legs pain", "title": 0.9559720768570369, "to": "toe pain", "value": 0.09559720768570369, "weight": 0.9559720768570369}, {"from": "legs pain", "title": 0.9571888764533713, "to": "arm pain", "value": 0.09571888764533713, "weight": 0.9571888764533713}, {"from": "legs pain", "title": 0.8948254329395751, "to": "hip joint pain", "value": 0.08948254329395751, "weight": 0.8948254329395751}, {"from": "legs pain", "title": 0.9173689342995792, "to": "wrist joint pain", "value": 0.09173689342995793, "weight": 0.9173689342995792}, {"from": "legs pain", "title": 0.9555740934391579, "to": "head pain", "value": 0.0955574093439158, "weight": 0.9555740934391579}, {"from": "legs pain", "title": 0.9447880967711432, "to": "knee swelling", "value": 0.09447880967711432, "weight": 0.9447880967711432}, {"from": "legs pain", "title": 0.9544890752898508, "to": "groin pain", "value": 0.09544890752898509, "weight": 0.9544890752898508}, {"from": "legs pain", "title": 0.9826060450950133, "to": "feet pain", "value": 0.09826060450950133, "weight": 0.9826060450950133}, {"from": "legs pain", "title": 0.9703681248575134, "to": "jaw pain", "value": 0.09703681248575136, "weight": 0.9703681248575134}, {"from": "legs pain", "title": 0.984293070535774, "to": "shoulders pain", "value": 0.0984293070535774, "weight": 0.984293070535774}, {"from": "legs pain", "title": 0.9246009158570669, "to": "tendon pain", "value": 0.0924600915857067, "weight": 0.9246009158570669}, {"from": "legs pain", "title": 0.9754658035834339, "to": "thigh pain", "value": 0.0975465803583434, "weight": 0.9754658035834339}, {"from": "legs pain", "title": 0.9742478116195767, "to": "arms pain", "value": 0.09742478116195769, "weight": 0.9742478116195767}, {"from": "legs pain", "title": 0.9176366207068057, "to": "hip knee pain", "value": 0.09176366207068058, "weight": 0.9176366207068057}, {"from": "chest pain", "title": 0.9668151503669863, "to": "elbow pain", "value": 0.09668151503669864, "weight": 0.9668151503669863}, {"from": "chest pain", "title": 0.9646861059808851, "to": "spine pain", "value": 0.09646861059808852, "weight": 0.9646861059808851}, {"from": "chest pain", "title": 0.9373614388430505, "to": "finger joint pain", "value": 0.09373614388430505, "weight": 0.9373614388430505}, {"from": "chest pain", "title": 0.9522515317013431, "to": "toe pain", "value": 0.09522515317013432, "weight": 0.9522515317013431}, {"from": "chest pain", "title": 0.9618711327842915, "to": "arm pain", "value": 0.09618711327842916, "weight": 0.9618711327842915}, {"from": "chest pain", "title": 0.9253871341150733, "to": "hip joint pain", "value": 0.09253871341150734, "weight": 0.9253871341150733}, {"from": "chest pain", "title": 0.9313650813830939, "to": "wrist joint pain", "value": 0.0931365081383094, "weight": 0.9313650813830939}, {"from": "chest pain", "title": 0.9583419742350353, "to": "head pain", "value": 0.09583419742350353, "weight": 0.9583419742350353}, {"from": "chest pain", "title": 0.9491582921219561, "to": "knee swelling", "value": 0.09491582921219562, "weight": 0.9491582921219561}, {"from": "chest pain", "title": 0.9704794621224848, "to": "groin pain", "value": 0.09704794621224849, "weight": 0.9704794621224848}, {"from": "chest pain", "title": 0.9549075129910068, "to": "feet pain", "value": 0.09549075129910069, "weight": 0.9549075129910068}, {"from": "chest pain", "title": 0.9882770440915615, "to": "jaw pain", "value": 0.09882770440915616, "weight": 0.9882770440915615}, {"from": "chest pain", "title": 0.9638589504924611, "to": "shoulders pain", "value": 0.0963858950492461, "weight": 0.9638589504924611}, {"from": "chest pain", "title": 0.948317855148302, "to": "tendon pain", "value": 0.09483178551483021, "weight": 0.948317855148302}, {"from": "chest pain", "title": 0.9798279266824982, "to": "thigh pain", "value": 0.09798279266824983, "weight": 0.9798279266824982}, {"from": "chest pain", "title": 0.9556406711096909, "to": "arms pain", "value": 0.0955640671109691, "weight": 0.9556406711096909}, {"from": "chest pain", "title": 0.9318439272954603, "to": "hip knee pain", "value": 0.09318439272954604, "weight": 0.9318439272954603}, {"from": "elbow pain", "title": 0.950361240153856, "to": "spine pain", "value": 0.09503612401538561, "weight": 0.950361240153856}, {"from": "elbow pain", "title": 0.956771766095544, "to": "finger joint pain", "value": 0.09567717660955441, "weight": 0.956771766095544}, {"from": "elbow pain", "title": 0.9660068688107617, "to": "toe pain", "value": 0.09660068688107618, "weight": 0.9660068688107617}, {"from": "elbow pain", "title": 0.9684156839423759, "to": "arm pain", "value": 0.09684156839423759, "weight": 0.9684156839423759}, {"from": "elbow pain", "title": 0.9453206456071418, "to": "hip joint pain", "value": 0.09453206456071418, "weight": 0.9453206456071418}, {"from": "elbow pain", "title": 0.9542600505306518, "to": "wrist joint pain", "value": 0.09542600505306519, "weight": 0.9542600505306518}, {"from": "elbow pain", "title": 0.9603370429554217, "to": "head pain", "value": 0.09603370429554217, "weight": 0.9603370429554217}, {"from": "elbow pain", "title": 0.9559604670129642, "to": "knee swelling", "value": 0.09559604670129643, "weight": 0.9559604670129642}, {"from": "elbow pain", "title": 0.9664049213701027, "to": "groin pain", "value": 0.09664049213701027, "weight": 0.9664049213701027}, {"from": "elbow pain", "title": 0.9559735067733467, "to": "feet pain", "value": 0.09559735067733467, "weight": 0.9559735067733467}, {"from": "elbow pain", "title": 0.9619222932525823, "to": "jaw pain", "value": 0.09619222932525823, "weight": 0.9619222932525823}, {"from": "elbow pain", "title": 0.9581174083884061, "to": "shoulders pain", "value": 0.09581174083884061, "weight": 0.9581174083884061}, {"from": "elbow pain", "title": 0.9604972463612825, "to": "tendon pain", "value": 0.09604972463612826, "weight": 0.9604972463612825}, {"from": "elbow pain", "title": 0.9660478386670209, "to": "thigh pain", "value": 0.0966047838667021, "weight": 0.9660478386670209}, {"from": "elbow pain", "title": 0.9494757466641722, "to": "arms pain", "value": 0.09494757466641723, "weight": 0.9494757466641722}, {"from": "elbow pain", "title": 0.9522075120830072, "to": "hip knee pain", "value": 0.09522075120830073, "weight": 0.9522075120830072}, {"from": "spine pain", "title": 0.9273602826015169, "to": "finger joint pain", "value": 0.0927360282601517, "weight": 0.9273602826015169}, {"from": "spine pain", "title": 0.9433284813013414, "to": "toe pain", "value": 0.09433284813013415, "weight": 0.9433284813013414}, {"from": "spine pain", "title": 0.9385142446277502, "to": "arm pain", "value": 0.09385142446277503, "weight": 0.9385142446277502}, {"from": "spine pain", "title": 0.9212938039489861, "to": "hip joint pain", "value": 0.09212938039489861, "weight": 0.9212938039489861}, {"from": "spine pain", "title": 0.9268494208391115, "to": "wrist joint pain", "value": 0.09268494208391115, "weight": 0.9268494208391115}, {"from": "spine pain", "title": 0.9176892470758554, "to": "head pain", "value": 0.09176892470758555, "weight": 0.9176892470758554}, {"from": "spine pain", "title": 0.9498841566850454, "to": "knee swelling", "value": 0.09498841566850455, "weight": 0.9498841566850454}, {"from": "spine pain", "title": 0.9564111062883925, "to": "groin pain", "value": 0.09564111062883926, "weight": 0.9564111062883925}, {"from": "spine pain", "title": 0.9197313264796129, "to": "feet pain", "value": 0.0919731326479613, "weight": 0.9197313264796129}, {"from": "spine pain", "title": 0.9734776536971999, "to": "jaw pain", "value": 0.09734776536972, "weight": 0.9734776536971999}, {"from": "spine pain", "title": 0.9439790728923418, "to": "shoulders pain", "value": 0.0943979072892342, "weight": 0.9439790728923418}, {"from": "spine pain", "title": 0.9723601500104042, "to": "tendon pain", "value": 0.09723601500104043, "weight": 0.9723601500104042}, {"from": "spine pain", "title": 0.958409069438258, "to": "thigh pain", "value": 0.0958409069438258, "weight": 0.958409069438258}, {"from": "spine pain", "title": 0.9285988158246598, "to": "arms pain", "value": 0.09285988158246598, "weight": 0.9285988158246598}, {"from": "spine pain", "title": 0.913814557946965, "to": "hip knee pain", "value": 0.0913814557946965, "weight": 0.913814557946965}, {"from": "finger joint pain", "title": 0.9511993376548932, "to": "toe pain", "value": 0.09511993376548933, "weight": 0.9511993376548932}, {"from": "finger joint pain", "title": 0.9598410368385372, "to": "arm pain", "value": 0.09598410368385372, "weight": 0.9598410368385372}, {"from": "finger joint pain", "title": 0.9616445865697921, "to": "hip joint pain", "value": 0.09616445865697922, "weight": 0.9616445865697921}, {"from": "finger joint pain", "title": 0.9842736768224327, "to": "wrist joint pain", "value": 0.09842736768224328, "weight": 0.9842736768224327}, {"from": "finger joint pain", "title": 0.9475322136786707, "to": "head pain", "value": 0.09475322136786707, "weight": 0.9475322136786707}, {"from": "finger joint pain", "title": 0.9223167330483306, "to": "knee swelling", "value": 0.09223167330483306, "weight": 0.9223167330483306}, {"from": "finger joint pain", "title": 0.9202361669230198, "to": "groin pain", "value": 0.09202361669230198, "weight": 0.9202361669230198}, {"from": "finger joint pain", "title": 0.9350450086494668, "to": "feet pain", "value": 0.09350450086494669, "weight": 0.9350450086494668}, {"from": "finger joint pain", "title": 0.9374872692621676, "to": "jaw pain", "value": 0.09374872692621677, "weight": 0.9374872692621676}, {"from": "finger joint pain", "title": 0.942210773560369, "to": "shoulders pain", "value": 0.09422107735603691, "weight": 0.942210773560369}, {"from": "finger joint pain", "title": 0.920121285080365, "to": "tendon pain", "value": 0.0920121285080365, "weight": 0.920121285080365}, {"from": "finger joint pain", "title": 0.9450164982082855, "to": "thigh pain", "value": 0.09450164982082855, "weight": 0.9450164982082855}, {"from": "finger joint pain", "title": 0.9429980704081792, "to": "arms pain", "value": 0.09429980704081792, "weight": 0.9429980704081792}, {"from": "finger joint pain", "title": 0.9613888297276941, "to": "hip knee pain", "value": 0.09613888297276942, "weight": 0.9613888297276941}, {"from": "toe pain", "title": 0.9710403667890365, "to": "arm pain", "value": 0.09710403667890366, "weight": 0.9710403667890365}, {"from": "toe pain", "title": 0.915916036623326, "to": "hip joint pain", "value": 0.0915916036623326, "weight": 0.915916036623326}, {"from": "toe pain", "title": 0.9321343677713796, "to": "wrist joint pain", "value": 0.09321343677713796, "weight": 0.9321343677713796}, {"from": "toe pain", "title": 0.9726168373433368, "to": "head pain", "value": 0.09726168373433369, "weight": 0.9726168373433368}, {"from": "toe pain", "title": 0.9403104922801957, "to": "knee swelling", "value": 0.09403104922801958, "weight": 0.9403104922801957}, {"from": "toe pain", "title": 0.9441188772181534, "to": "groin pain", "value": 0.09441188772181534, "weight": 0.9441188772181534}, {"from": "toe pain", "title": 0.9644283670233895, "to": "feet pain", "value": 0.09644283670233895, "weight": 0.9644283670233895}, {"from": "toe pain", "title": 0.9572697487002142, "to": "jaw pain", "value": 0.09572697487002142, "weight": 0.9572697487002142}, {"from": "toe pain", "title": 0.9609628180789341, "to": "shoulders pain", "value": 0.09609628180789342, "weight": 0.9609628180789341}, {"from": "toe pain", "title": 0.9345835534631403, "to": "tendon pain", "value": 0.09345835534631403, "weight": 0.9345835534631403}, {"from": "toe pain", "title": 0.9702483421337927, "to": "thigh pain", "value": 0.09702483421337928, "weight": 0.9702483421337927}, {"from": "toe pain", "title": 0.9538099543995197, "to": "arms pain", "value": 0.09538099543995197, "weight": 0.9538099543995197}, {"from": "toe pain", "title": 0.9329020486002786, "to": "hip knee pain", "value": 0.09329020486002787, "weight": 0.9329020486002786}, {"from": "arm pain", "title": 0.9334582001053635, "to": "hip joint pain", "value": 0.09334582001053636, "weight": 0.9334582001053635}, {"from": "arm pain", "title": 0.9480612661718149, "to": "wrist joint pain", "value": 0.09480612661718149, "weight": 0.9480612661718149}, {"from": "arm pain", "title": 0.9766694006878813, "to": "head pain", "value": 0.09766694006878814, "weight": 0.9766694006878813}, {"from": "arm pain", "title": 0.9296940357960188, "to": "knee swelling", "value": 0.09296940357960189, "weight": 0.9296940357960188}, {"from": "arm pain", "title": 0.9379440618082868, "to": "groin pain", "value": 0.09379440618082868, "weight": 0.9379440618082868}, {"from": "arm pain", "title": 0.9605073342950046, "to": "feet pain", "value": 0.09605073342950046, "weight": 0.9605073342950046}, {"from": "arm pain", "title": 0.9584934206366037, "to": "jaw pain", "value": 0.09584934206366037, "weight": 0.9584934206366037}, {"from": "arm pain", "title": 0.964042067601073, "to": "shoulders pain", "value": 0.0964042067601073, "weight": 0.964042067601073}, {"from": "arm pain", "title": 0.9233933694678215, "to": "tendon pain", "value": 0.09233933694678215, "weight": 0.9233933694678215}, {"from": "arm pain", "title": 0.9641596580738343, "to": "thigh pain", "value": 0.09641596580738343, "weight": 0.9641596580738343}, {"from": "arm pain", "title": 0.9745235599403325, "to": "arms pain", "value": 0.09745235599403325, "weight": 0.9745235599403325}, {"from": "arm pain", "title": 0.9397889139254791, "to": "hip knee pain", "value": 0.09397889139254792, "weight": 0.9397889139254791}, {"from": "hip joint pain", "title": 0.975403044366746, "to": "wrist joint pain", "value": 0.09754030443667461, "weight": 0.975403044366746}, {"from": "hip joint pain", "title": 0.9174803061183111, "to": "head pain", "value": 0.09174803061183112, "weight": 0.9174803061183111}, {"from": "hip joint pain", "title": 0.898735209440803, "to": "knee swelling", "value": 0.0898735209440803, "weight": 0.898735209440803}, {"from": "hip joint pain", "title": 0.8949356341898442, "to": "groin pain", "value": 0.08949356341898443, "weight": 0.8949356341898442}, {"from": "hip joint pain", "title": 0.9009994050977063, "to": "feet pain", "value": 0.09009994050977063, "weight": 0.9009994050977063}, {"from": "hip joint pain", "title": 0.9260270896114028, "to": "jaw pain", "value": 0.09260270896114028, "weight": 0.9260270896114028}, {"from": "hip joint pain", "title": 0.9012019456271443, "to": "shoulders pain", "value": 0.09012019456271443, "weight": 0.9012019456271443}, {"from": "hip joint pain", "title": 0.9209138879952431, "to": "tendon pain", "value": 0.09209138879952432, "weight": 0.9209138879952431}, {"from": "hip joint pain", "title": 0.9160432620354679, "to": "thigh pain", "value": 0.0916043262035468, "weight": 0.9160432620354679}, {"from": "hip joint pain", "title": 0.9059305159142848, "to": "arms pain", "value": 0.09059305159142848, "weight": 0.9059305159142848}, {"from": "hip joint pain", "title": 0.9788085583761802, "to": "hip knee pain", "value": 0.09788085583761802, "weight": 0.9788085583761802}, {"from": "wrist joint pain", "title": 0.9232190651633249, "to": "head pain", "value": 0.09232190651633249, "weight": 0.9232190651633249}, {"from": "wrist joint pain", "title": 0.9179992127705088, "to": "knee swelling", "value": 0.09179992127705089, "weight": 0.9179992127705088}, {"from": "wrist joint pain", "title": 0.9163701082410606, "to": "groin pain", "value": 0.09163701082410607, "weight": 0.9163701082410606}, {"from": "wrist joint pain", "title": 0.9140627064806931, "to": "feet pain", "value": 0.09140627064806932, "weight": 0.9140627064806931}, {"from": "wrist joint pain", "title": 0.9329386933336306, "to": "jaw pain", "value": 0.09329386933336306, "weight": 0.9329386933336306}, {"from": "wrist joint pain", "title": 0.9294229218220781, "to": "shoulders pain", "value": 0.09294229218220781, "weight": 0.9294229218220781}, {"from": "wrist joint pain", "title": 0.9242005782101511, "to": "tendon pain", "value": 0.09242005782101512, "weight": 0.9242005782101511}, {"from": "wrist joint pain", "title": 0.9305669362640886, "to": "thigh pain", "value": 0.09305669362640887, "weight": 0.9305669362640886}, {"from": "wrist joint pain", "title": 0.9247215119278157, "to": "arms pain", "value": 0.09247215119278157, "weight": 0.9247215119278157}, {"from": "wrist joint pain", "title": 0.969544827411184, "to": "hip knee pain", "value": 0.0969544827411184, "weight": 0.969544827411184}, {"from": "head pain", "title": 0.925762666787428, "to": "knee swelling", "value": 0.0925762666787428, "weight": 0.925762666787428}, {"from": "head pain", "title": 0.9326147386252409, "to": "groin pain", "value": 0.09326147386252409, "weight": 0.9326147386252409}, {"from": "head pain", "title": 0.9714580212831693, "to": "feet pain", "value": 0.09714580212831693, "weight": 0.9714580212831693}, {"from": "head pain", "title": 0.948825495926433, "to": "jaw pain", "value": 0.0948825495926433, "weight": 0.948825495926433}, {"from": "head pain", "title": 0.9538299585484309, "to": "shoulders pain", "value": 0.0953829958548431, "weight": 0.9538299585484309}, {"from": "head pain", "title": 0.9066665562431412, "to": "tendon pain", "value": 0.09066665562431413, "weight": 0.9066665562431412}, {"from": "head pain", "title": 0.959254163495362, "to": "thigh pain", "value": 0.0959254163495362, "weight": 0.959254163495362}, {"from": "head pain", "title": 0.9650203694005541, "to": "arms pain", "value": 0.09650203694005542, "weight": 0.9650203694005541}, {"from": "head pain", "title": 0.9316878164798293, "to": "hip knee pain", "value": 0.09316878164798294, "weight": 0.9316878164798293}, {"from": "knee swelling", "title": 0.960772039462287, "to": "groin pain", "value": 0.0960772039462287, "weight": 0.960772039462287}, {"from": "knee swelling", "title": 0.9359790556700366, "to": "feet pain", "value": 0.09359790556700366, "weight": 0.9359790556700366}, {"from": "knee swelling", "title": 0.9583938878994327, "to": "jaw pain", "value": 0.09583938878994328, "weight": 0.9583938878994327}, {"from": "knee swelling", "title": 0.9416939959206934, "to": "shoulders pain", "value": 0.09416939959206934, "weight": 0.9416939959206934}, {"from": "knee swelling", "title": 0.9543762219896589, "to": "tendon pain", "value": 0.0954376221989659, "weight": 0.9543762219896589}, {"from": "knee swelling", "title": 0.9571425891575845, "to": "thigh pain", "value": 0.09571425891575847, "weight": 0.9571425891575845}, {"from": "knee swelling", "title": 0.9230003691814664, "to": "arms pain", "value": 0.09230003691814664, "weight": 0.9230003691814664}, {"from": "knee swelling", "title": 0.9198750022058412, "to": "hip knee pain", "value": 0.09198750022058412, "weight": 0.9198750022058412}, {"from": "groin pain", "title": 0.9363650965275252, "to": "feet pain", "value": 0.09363650965275253, "weight": 0.9363650965275252}, {"from": "groin pain", "title": 0.9686741334016451, "to": "jaw pain", "value": 0.09686741334016452, "weight": 0.9686741334016451}, {"from": "groin pain", "title": 0.9535469616775607, "to": "shoulders pain", "value": 0.09535469616775608, "weight": 0.9535469616775607}, {"from": "groin pain", "title": 0.964262008992617, "to": "tendon pain", "value": 0.09642620089926171, "weight": 0.964262008992617}, {"from": "groin pain", "title": 0.9614573061171406, "to": "thigh pain", "value": 0.09614573061171407, "weight": 0.9614573061171406}, {"from": "groin pain", "title": 0.9375178019417711, "to": "arms pain", "value": 0.09375178019417713, "weight": 0.9375178019417711}, {"from": "groin pain", "title": 0.9073609398462658, "to": "hip knee pain", "value": 0.09073609398462658, "weight": 0.9073609398462658}, {"from": "feet pain", "title": 0.9534521763823094, "to": "jaw pain", "value": 0.09534521763823095, "weight": 0.9534521763823094}, {"from": "feet pain", "title": 0.9759812517109504, "to": "shoulders pain", "value": 0.09759812517109505, "weight": 0.9759812517109504}, {"from": "feet pain", "title": 0.9120624602298233, "to": "tendon pain", "value": 0.09120624602298233, "weight": 0.9120624602298233}, {"from": "feet pain", "title": 0.9685993729758723, "to": "thigh pain", "value": 0.09685993729758724, "weight": 0.9685993729758723}, {"from": "feet pain", "title": 0.9715718637795933, "to": "arms pain", "value": 0.09715718637795934, "weight": 0.9715718637795933}, {"from": "feet pain", "title": 0.9264393778823535, "to": "hip knee pain", "value": 0.09264393778823536, "weight": 0.9264393778823535}, {"from": "jaw pain", "title": 0.9620287526454034, "to": "shoulders pain", "value": 0.09620287526454036, "weight": 0.9620287526454034}, {"from": "jaw pain", "title": 0.9545056919000106, "to": "tendon pain", "value": 0.09545056919000106, "weight": 0.9545056919000106}, {"from": "jaw pain", "title": 0.9844125181054957, "to": "thigh pain", "value": 0.09844125181054958, "weight": 0.9844125181054957}, {"from": "jaw pain", "title": 0.9506915617940241, "to": "arms pain", "value": 0.09506915617940243, "weight": 0.9506915617940241}, {"from": "jaw pain", "title": 0.932431097878032, "to": "hip knee pain", "value": 0.0932431097878032, "weight": 0.932431097878032}, {"from": "shoulders pain", "title": 0.9241639645719679, "to": "tendon pain", "value": 0.09241639645719679, "weight": 0.9241639645719679}, {"from": "shoulders pain", "title": 0.9713357046694795, "to": "thigh pain", "value": 0.09713357046694795, "weight": 0.9713357046694795}, {"from": "shoulders pain", "title": 0.9805045681377641, "to": "arms pain", "value": 0.09805045681377642, "weight": 0.9805045681377641}, {"from": "shoulders pain", "title": 0.9181777118608274, "to": "hip knee pain", "value": 0.09181777118608275, "weight": 0.9181777118608274}, {"from": "tendon pain", "title": 0.9505336166078583, "to": "thigh pain", "value": 0.09505336166078583, "weight": 0.9505336166078583}, {"from": "tendon pain", "title": 0.9077130939253991, "to": "arms pain", "value": 0.09077130939253991, "weight": 0.9077130939253991}, {"from": "tendon pain", "title": 0.9168505313812962, "to": "hip knee pain", "value": 0.09168505313812964, "weight": 0.9168505313812962}, {"from": "thigh pain", "title": 0.9608993960486444, "to": "arms pain", "value": 0.09608993960486445, "weight": 0.9608993960486444}, {"from": "thigh pain", "title": 0.9372469971999133, "to": "hip knee pain", "value": 0.09372469971999134, "weight": 0.9372469971999133}, {"from": "arms pain", "title": 0.9213338932213619, "to": "hip knee pain", "value": 0.0921333893221362, "weight": 0.9213338932213619}]);
|
55 |
|
56 |
// adding nodes and edges to the graph
|
57 |
data = {nodes: nodes, edges: edges};
|
@@ -65,8 +65,8 @@
|
|
65 |
"inherit": true
|
66 |
},
|
67 |
"smooth": {
|
68 |
-
"enabled":
|
69 |
-
"type": "
|
70 |
}
|
71 |
},
|
72 |
"interaction": {
|
@@ -77,15 +77,15 @@
|
|
77 |
"physics": {
|
78 |
"barnesHut": {
|
79 |
"avoidOverlap": 0,
|
80 |
-
"centralGravity": 0.
|
81 |
"damping": 0.09,
|
82 |
-
"gravitationalConstant": -
|
83 |
"springConstant": 0.001,
|
84 |
-
"springLength":
|
85 |
},
|
86 |
"enabled": true,
|
87 |
"stabilization": {
|
88 |
-
"enabled":
|
89 |
"fit": true,
|
90 |
"iterations": 1000,
|
91 |
"onlyDynamicEdges": false,
|
|
|
50 |
|
51 |
|
52 |
// parsing and collecting nodes and edges from the python
|
53 |
+
nodes = new vis.DataSet([{"color": "#4EA0DB", "font": {"color": "#ffffff"}, "id": "joint pain", "label": "joint pain", "shape": "circle", "value": 100}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "knee pain", "label": "knee pain", "shape": "circle", "value": 70}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "joint pains", "label": "joint pains", "shape": "circle", "value": 70}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "hip pain", "label": "hip pain", "shape": "circle", "value": 70}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "joint swelling", "label": "joint swelling", "shape": "circle", "value": 70}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "joint spasms", "label": "joint spasms", "shape": "circle", "value": 70}, {"color": "#FE51B9", "font": {"color": "#ffffff"}, "id": "hip joint pain", "label": "hip joint pain", "shape": "circle", "value": 70}]);
|
54 |
+
edges = new vis.DataSet([{"from": "joint pain", "title": 0.9572226566398657, "to": "knee pain", "value": 0.9572226566398657, "weight": 0.9572226566398657}, {"from": "joint pain", "title": 0.9625375209664775, "to": "joint pains", "value": 0.9625375209664775, "weight": 0.9625375209664775}, {"from": "joint pain", "title": 0.95503555027131, "to": "hip pain", "value": 0.95503555027131, "weight": 0.95503555027131}, {"from": "joint pain", "title": 0.9502244303109445, "to": "joint swelling", "value": 0.9502244303109445, "weight": 0.9502244303109445}, {"from": "joint pain", "title": 0.9501415183125163, "to": "joint spasms", "value": 0.9501415183125163, "weight": 0.9501415183125163}, {"from": "joint pain", "title": 0.954950292429293, "to": "hip joint pain", "value": 0.954950292429293, "weight": 0.954950292429293}, {"from": "knee pain", "title": 0.9418004072308424, "to": "joint pains", "value": 0.4709002036154212, "weight": 0.9418004072308424}, {"from": "knee pain", "title": 0.9728595739961697, "to": "hip pain", "value": 0.48642978699808487, "weight": 0.9728595739961697}, {"from": "knee pain", "title": 0.9295580615322443, "to": "joint swelling", "value": 0.46477903076612215, "weight": 0.9295580615322443}, {"from": "knee pain", "title": 0.9360705784202505, "to": "joint spasms", "value": 0.46803528921012527, "weight": 0.9360705784202505}, {"from": "knee pain", "title": 0.9537760229169578, "to": "hip joint pain", "value": 0.4768880114584789, "weight": 0.9537760229169578}, {"from": "joint pains", "title": 0.9267684505176702, "to": "hip pain", "value": 0.4633842252588351, "weight": 0.9267684505176702}, {"from": "joint pains", "title": 0.949263384012155, "to": "joint swelling", "value": 0.4746316920060775, "weight": 0.949263384012155}, {"from": "joint pains", "title": 0.9767091604713536, "to": "joint spasms", "value": 0.4883545802356768, "weight": 0.9767091604713536}, {"from": "joint pains", "title": 0.9271664961331827, "to": "hip joint pain", "value": 0.46358324806659135, "weight": 0.9271664961331827}, {"from": "hip pain", "title": 0.9171146529864702, "to": "joint swelling", "value": 0.4585573264932351, "weight": 0.9171146529864702}, {"from": "hip pain", "title": 0.9164231845869644, "to": "joint spasms", "value": 0.4582115922934822, "weight": 0.9164231845869644}, {"from": "hip pain", "title": 0.9591815632838274, "to": "hip joint pain", "value": 0.4795907816419137, "weight": 0.9591815632838274}, {"from": "joint swelling", "title": 0.9714236421275902, "to": "joint spasms", "value": 0.4857118210637951, "weight": 0.9714236421275902}, {"from": "joint swelling", "title": 0.9166539186706262, "to": "hip joint pain", "value": 0.4583269593353131, "weight": 0.9166539186706262}, {"from": "joint spasms", "title": 0.9179037086580787, "to": "hip joint pain", "value": 0.45895185432903934, "weight": 0.9179037086580787}]);
|
55 |
|
56 |
// adding nodes and edges to the graph
|
57 |
data = {nodes: nodes, edges: edges};
|
|
|
65 |
"inherit": true
|
66 |
},
|
67 |
"smooth": {
|
68 |
+
"enabled": true,
|
69 |
+
"type": "dynamic"
|
70 |
}
|
71 |
},
|
72 |
"interaction": {
|
|
|
77 |
"physics": {
|
78 |
"barnesHut": {
|
79 |
"avoidOverlap": 0,
|
80 |
+
"centralGravity": 0.3,
|
81 |
"damping": 0.09,
|
82 |
+
"gravitationalConstant": -2500,
|
83 |
"springConstant": 0.001,
|
84 |
+
"springLength": 250
|
85 |
},
|
86 |
"enabled": true,
|
87 |
"stabilization": {
|
88 |
+
"enabled": false,
|
89 |
"fit": true,
|
90 |
"iterations": 1000,
|
91 |
"onlyDynamicEdges": false,
|