
    +sg                    J    d dl mZ d dlmZ d dlmZ d dlmZ  G d de      Zy)    )annotations)Dataset)SentenceTransformer)InputExamplec                  $    e Zd ZdZddZd Zd Zy)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.
    c                    || _         y Nexamples)selfr   models      b/var/www/html/venv/lib/python3.12/site-packages/sentence_transformers/datasets/SentencesDataset.py__init__zSentencesDataset.__init__   s	         c                     | j                   |   S r
   r   )r   items     r   __getitem__zSentencesDataset.__getitem__   s    }}T""r   c                ,    t        | j                        S r
   )lenr   )r   s    r   __len__zSentencesDataset.__len__   s    4==!!r   N)r   zlist[InputExample]r   r   )__name__
__module____qualname____doc__r   r   r    r   r   r   r   	   s    
!#"r   r   N)	
__future__r   torch.utils.datar   sentence_transformersr   *sentence_transformers.readers.InputExampler   r   r   r   r   <module>r!      s    " $ 5 C"w "r   