Spaces:
Sleeping
Sleeping
Update renderers/tree.py
Browse files- renderers/tree.py +8 -7
renderers/tree.py
CHANGED
@@ -144,9 +144,9 @@ def generate_subplot1(paraphrased_sentence, masked_sentences, strategies, highli
|
|
144 |
# Define the text for each edge
|
145 |
default_edge_texts = [
|
146 |
"Highest Entropy Masking", "Pseudo-random Masking", "Random Masking",
|
147 |
-
"Greedy Sampling", "Temperature Sampling", "Exponential Minimum Sampling",
|
148 |
-
"Inverse Transform Sampling", "Greedy Sampling", "Temperature Sampling",
|
149 |
-
"Exponential Minimum Sampling", "Inverse Transform Sampling", "Greedy Sampling",
|
150 |
"Temperature Sampling", "Exponential Minimum Sampling", "Inverse Transform Sampling"
|
151 |
]
|
152 |
|
@@ -248,10 +248,11 @@ def generate_subplot2(masked_sentences, sampled_sentences, highlight_info, commo
|
|
248 |
"""
|
249 |
# Define sampling techniques
|
250 |
sampling_techniques = [
|
251 |
-
"
|
252 |
-
"
|
253 |
-
"
|
254 |
-
"
|
|
|
255 |
]
|
256 |
|
257 |
# Calculate total number of nodes
|
|
|
144 |
# Define the text for each edge
|
145 |
default_edge_texts = [
|
146 |
"Highest Entropy Masking", "Pseudo-random Masking", "Random Masking",
|
147 |
+
"Greedy Sampling", "Tournament Sampling", "Temperature Sampling", "Exponential Minimum Sampling",
|
148 |
+
"Inverse Transform Sampling", "Greedy Sampling", "Tournament Sampling", "Temperature Sampling",
|
149 |
+
"Exponential Minimum Sampling", "Inverse Transform Sampling", "Greedy Sampling", "Tournament Sampling",
|
150 |
"Temperature Sampling", "Exponential Minimum Sampling", "Inverse Transform Sampling"
|
151 |
]
|
152 |
|
|
|
248 |
"""
|
249 |
# Define sampling techniques
|
250 |
sampling_techniques = [
|
251 |
+
"Inverse Transform Sampling",
|
252 |
+
"Exponential Minimum Sampling",
|
253 |
+
"Temperature Sampling",
|
254 |
+
"Greedy Sampling",
|
255 |
+
"Tournament Sampling",
|
256 |
]
|
257 |
|
258 |
# Calculate total number of nodes
|