def encode_powerset_labels(y):
    """Encode the array y as a collection of concatenated label strings including
    each stance where the stance is 1. The label format is suitable for feeding to FastText."""
    return ['__label__' + '_'.join(map(str, y[i, :])) for i in range(y.shape[0])]