File size: 302 Bytes
0f35f83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from similarity_models.cosine_similarity import CosineSimilarity

class _Registry:
    def __init__(self):
        pass

    def _models(self):
        return [
            CosineSimilarity()
        ]

    def models(self):
        return {m.name(): m for m in self._models()}

registry = _Registry()