File size: 447 Bytes
93c029f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from src.cocktails.pipeline.get_affect2affective_cluster import get_affect2affective_cluster
from src.cocktails.pipeline.cocktail2affect import cocktail2affect

def get_cocktail2affective_cluster():
    find_cluster = get_affect2affective_cluster()
    def cocktail2affect_cluster(cocktail_rep):
        affective_coordinates, _ = cocktail2affect(cocktail_rep)
        return find_cluster(affective_coordinates)
    return cocktail2affect_cluster