Flux9665 commited on
Commit
13ff9e8
β€’
1 Parent(s): e5a9fd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -131,14 +131,14 @@ class Measurer:
131
  if l1 == l2:
132
  f1 = plot_scalar_on_scale(0.0, f"Language Family Tree Distance between {l1} and {l2}")
133
  f2 = plot_scalar_on_scale(0.0, f"Distance on the Globe between {l1} and {l2}")
134
- f3 = plot_scalar_on_scale(0.0, f"Distance between Phoneme-Sets between {l1} and {l2}")
135
  f4 = plot_scalar_on_scale(0.0, f"Machine-Learned Distance between {l1} and {l2}")
136
  else:
137
  tree_dist, map_dist, asp_dist, learned_dist = self.get_dists(l1.split(" ")[-1].split("(")[1].split(")")[0],
138
  l2.split(" ")[-1].split("(")[1].split(")")[0])
139
  f1 = plot_scalar_on_scale(tree_dist, f"Language Family Tree Distance between {l1} and {l2}")
140
  f2 = plot_scalar_on_scale(map_dist, f"Distance on the Globe between {l1} and {l2}")
141
- f3 = plot_scalar_on_scale(asp_dist, f"Distance between Phoneme-Sets between {l1} and {l2}")
142
  f4 = plot_scalar_on_scale(learned_dist, f"Machine-Learned Distance between {l1} and {l2}")
143
 
144
  return f1, f2, f3, f4
 
131
  if l1 == l2:
132
  f1 = plot_scalar_on_scale(0.0, f"Language Family Tree Distance between {l1} and {l2}")
133
  f2 = plot_scalar_on_scale(0.0, f"Distance on the Globe between {l1} and {l2}")
134
+ f3 = plot_scalar_on_scale(0.0, f"Phoneme-Frequency Distance between {l1} and {l2}")
135
  f4 = plot_scalar_on_scale(0.0, f"Machine-Learned Distance between {l1} and {l2}")
136
  else:
137
  tree_dist, map_dist, asp_dist, learned_dist = self.get_dists(l1.split(" ")[-1].split("(")[1].split(")")[0],
138
  l2.split(" ")[-1].split("(")[1].split(")")[0])
139
  f1 = plot_scalar_on_scale(tree_dist, f"Language Family Tree Distance between {l1} and {l2}")
140
  f2 = plot_scalar_on_scale(map_dist, f"Distance on the Globe between {l1} and {l2}")
141
+ f3 = plot_scalar_on_scale(asp_dist, f"Phoneme-Frequency Distance between {l1} and {l2}")
142
  f4 = plot_scalar_on_scale(learned_dist, f"Machine-Learned Distance between {l1} and {l2}")
143
 
144
  return f1, f2, f3, f4