o
    pi                     @   s   d Z ddlmZ ddlZddlmZmZ ddlmZ ddlm	Z	 ddlm
Z
 dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlZejdZddee de	fddZg dZdS )zpyannote.database    )OptionalN   )registryLoadingMode)Database)Protocol)ProtocolFile)Subset)Preprocessors)
FileFinder)get_annotated)get_unique_identifier)get_label_identifierzpyannote-databasepreprocessorsreturnc                 C   s   t dt tj| |dS )a  Get protocol by full name

    name : str
        Protocol full name (e.g. "Etape.SpeakerDiarization.TV")
    preprocessors : dict or (key, preprocessor) iterable
        When provided, each protocol item (dictionary) are preprocessed, such
        that item[key] = preprocessor(item). In case 'preprocessor' is not
        callable, it should be a string containing placeholder for item keys
        (e.g. {'audio': '/path/to/{uri}.wav'})

    Returns
    -------
    protocol : Protocol
        Protocol instance
    zY`get_protocol` has been deprecated in favor of `pyannote.database.registry.get_protocol`.)r   )warningswarnDeprecationWarningr   get_protocol)namer    r   N/home/ubuntu/.local/lib/python3.10/site-packages/pyannote/database/__init__.pyr   6   s
   r   )r   r   r   r   r   r   r	   r   r   r   r   )N)__doc__typingr   r   r   r   databaser   protocol.protocolr   r   r	   r
   file_finderr   utilr   r   r   importlib.metadata	importlibmetadataversion__version__r   __all__r   r   r   r   <module>   s"   