TastyPiano / src /cocktails /pipeline /get_cocktail2affective_cluster.py
Cédric Colas
initial commit
e775f6d
raw
history blame
447 Bytes
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