def hot_to_smile(onehot_encoded, alphabet):
    """
    Go from one-hot encoding to smile string
    """    
    # From one-hot to integer encoding
    integer_encoded = onehot_encoded.argmax(1)
#    print('integer_encoded ', integer_encoded)
    
    int_to_char = dict((i, c) for i, c in enumerate(alphabet))
#    print('DECODING: ', int_to_char)
    # integer encoding to smile
    regen_smile = "".join(int_to_char[x] for x in integer_encoded)
    regen_smile = regen_smile.strip()
    return regen_smile