espnet.nets.pytorch_backend.transducer.utils.subtract
Less than 1 minute
espnet.nets.pytorch_backend.transducer.utils.subtract
espnet.nets.pytorch_backend.transducer.utils.subtract(x: List[ExtendedHypothesis], subset: List[ExtendedHypothesis]) → List[ExtendedHypothesis]
Remove elements of subset if corresponding label ID sequence already exist in x.
- Parameters:
- x – Set of hypotheses.
- subset – Subset of x.
- Returns: New set of hypotheses.
- Return type: final