ShowExampleEdit becomes more complex, handles ctrl+click and selecting/moving examples

This commit is contained in:
2020-01-02 14:22:35 +01:00
parent 00827e7b0b
commit e7283c3ba1
5 changed files with 50 additions and 6 deletions

View File

@@ -35,3 +35,7 @@ class Sense(Editable):
self.translations = [[] for _ in range(max_num_cluster)]
for clusterNum, translation in translations:
self.translations[clusterNum - 1].append(translation)
def merge_labels(self):
return ", ".join(val for _, val in self.labels)