Raised when the utt is too short for subsampling. Args: message (str): Message for error catch actual_size (int): the short size that cannot pass the subsampling limit (int): the limit size for subsampling
| 10 | |
| 11 | |
| 12 | class TooShortUttError(Exception): |
| 13 | """Raised when the utt is too short for subsampling. |
| 14 | |
| 15 | Args: |
| 16 | message (str): Message for error catch |
| 17 | actual_size (int): the short size that cannot pass the subsampling |
| 18 | limit (int): the limit size for subsampling |
| 19 | |
| 20 | """ |
| 21 | |
| 22 | def __init__(self, message, actual_size, limit): |
| 23 | """Construct a TooShortUttError for error handler.""" |
| 24 | super().__init__(message) |
| 25 | self.actual_size = actual_size |
| 26 | self.limit = limit |
| 27 | |
| 28 | |
| 29 | def check_short_utt(ins, size): |
no outgoing calls
no test coverage detected
searching dependent graphs…