o
    i                     @   s2   g d Z g dZdefddZdd Ze e ZdS ))CTCHypothesis
CTCDecoderCTCDecoderLMCTCDecoderLMStatectc_decoderdownload_pretrained_files)CUCTCDecoderCUCTCHypothesiscuda_ctc_decodernamec              
   C   s   | t v r*zddlm} W n ty } ztd|d }~ww t|| }|t | < |S | tv rTzddlm} W n t	yG } ztd|d }~ww t|| }|t | < |S t	dt
 d|  )N   )_ctc_decoderz\CTC Decoder suit requires flashlight-text package and optionally KenLM. Please install them.)_cuda_ctc_decoderzTTo use CUCTC decoder, please set BUILD_CUDA_CTC_DECODER=1 when building from source.zmodule z has no attribute )_CTC_DECODERS r   	ExceptionRuntimeErrorgetattrglobals_CUDA_CTC_DECODERSr   AttributeError__name__)r
   r   erritemr    r   V/home/ubuntu/.local/lib/python3.10/site-packages/torchaudio/models/decoder/__init__.py__getattr__   s:   



r   c                   C   s   t tS )N)sorted__all__r   r   r   r   __dir__*   s   r   N)r   r   strr   r   r   r   r   r   r   <module>   s
    