quick cleanup
This commit is contained in:
parent
0bc7ea0c4b
commit
6f3b5aeb5b
|
@ -20,4 +20,7 @@
|
||||||
@black: #111;
|
@black: #111;
|
||||||
|
|
||||||
// added a few for this usecase
|
// added a few for this usecase
|
||||||
|
@darkpink: #cc3366;
|
||||||
@darkred: #860a03;
|
@darkred: #860a03;
|
||||||
|
@translation-color: #3366ee;
|
||||||
|
@label-color: #387434;
|
||||||
|
|
|
@ -23,12 +23,3 @@ class Sense(Editable):
|
||||||
def merge_labels(self):
|
def merge_labels(self):
|
||||||
return ", ".join(val for _, val in self.labels)
|
return ", ".join(val for _, val in self.labels)
|
||||||
|
|
||||||
def example_clusters(self):
|
|
||||||
result = set()
|
|
||||||
for ex in self.examples:
|
|
||||||
cluster = ex.get_cluster()
|
|
||||||
if cluster is not None:
|
|
||||||
result.add(cluster)
|
|
||||||
|
|
||||||
return sorted(result, key=lambda x: x)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user