TastyPiano / src /cocktails /pipeline /get_cocktail2affective_cluster.py
ccolas's picture
Upload 174 files
93c029f
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