Source code for embedded_voting.ratings_from_embeddings.ratings_from_embeddings

# -*- coding: utf-8 -*-
"""
This file is part of Embedded Voting.
"""


[docs]class RatingsFromEmbeddings: """ This abstract class is used to generate ratings from embeddings. Parameters ---------- n_candidates: int The number of candidates wanted in the ratings. """ def __init__(self, n_candidates): self.n_candidates = n_candidates def __call__(self, embeddings, *args): """ This method generate ratings from the embeddings Parameters ---------- embeddings : Embeddings Returns ------- ratings : Ratings """ raise NotImplementedError