o
    sÒhÚ  ã                   @   sD   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ deƒZdS )é    )ÚList)ÚDataset)ÚSentenceTransformer)ÚInputExamplec                   @   s6   e Zd ZdZdee defdd„Zdd„ Zdd	„ Z	d
S )ÚSentencesDatasetzê
    DEPRECATED: This class is no longer used. Instead of wrapping your List of InputExamples in a SentencesDataset
    and then passing it to the DataLoader, you can pass the list of InputExamples directly to the dataset loader.
    ÚexamplesÚmodelc                 C   s
   || _ d S ©N©r   )Úselfr   r   © r   úm/var/www/html/alpaca_bot/venv/lib/python3.10/site-packages/sentence_transformers/datasets/SentencesDataset.pyÚ__init__   ó   
zSentencesDataset.__init__c                 C   s
   | j | S r	   r
   )r   Úitemr   r   r   Ú__getitem__   r   zSentencesDataset.__getitem__c                 C   s
   t | jƒS r	   )Úlenr   )r   r   r   r   Ú__len__   r   zSentencesDataset.__len__N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r   r   	   s
    r   N)	Útypingr   Útorch.utils.datar   Úsentence_transformersr   Ú*sentence_transformers.readers.InputExampler   r   r   r   r   r   Ú<module>   s
    