concepts.language.neural_ccg.ckyee.aggregate_weights# aggregate_weights(weights, log=True)[source]# Sum up a list of parsing weights (probabilities). Parameters: weights (Tensor | Tuple[Tensor, ...] | List[Tensor]) – a list of weights. It can be a single tensor, or a list of tensors. log – whether the weights are in log space. When this is True, the output will be computed as logsumexp. Returns: A tuple of (sum, max). Return type: Tuple[Tensor, float]