lhotse-speech / lhotse

Tools for handling speech data in machine learning projects.
https://lhotse.readthedocs.io/en/latest/
Apache License 2.0
936 stars 214 forks source link

how to delete some monocuts in cutsets? #1256

Closed Mahaotian1 closed 9 months ago

Mahaotian1 commented 9 months ago

when i am training, i found some monocuts can not work out because of my mistake. My question is : how can i delete these monocuts which is in a cutset. I do not want to use "lhotse subset" to avoid these monocuts , it is too inconvenient to work.

pzelasko commented 9 months ago

you can use e.g. cuts = cuts.filter(lambda c: c.id not in FORBIDDEN_IDS_SET)

Mahaotian1 commented 9 months ago

you can use e.g. cuts = cuts.filter(lambda c: c.id not in FORBIDDEN_IDS_SET)

thanks a lot!