
    bi                    V    d Z 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	dS )	a  
This file contains deprecated code that can only be used with the old `model.fit`-style Sentence Transformers v2.X training.
It exists for backwards compatibility with the `model.old_fit` method, but will be removed in a future version.

Nowadays, with Sentence Transformers v3+, it is recommended to use the `SentenceTransformerTrainer` class to train models.
See https://www.sbert.net/docs/sentence_transformer/training_overview.html for more information.
    )annotations)Dataset)SentenceTransformer)InputExamplec                  &    e Zd ZdZd
dZd Z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list[InputExample]modelr   c                    || _         d S Nr	   )selfr	   r   s      j/root/projects/butler/venv/lib/python3.11/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	   r
   r   r   )__name__
__module____qualname____doc__r   r   r    r   r   r   r      sP         
! ! ! !# # #" " " " "r   r   N)
r   
__future__r   torch.utils.datar   sentence_transformersr   *sentence_transformers.readers.InputExampler   r   r   r   r   <module>r"      s     # " " " " " $ $ $ $ $ $ 5 5 5 5 5 5 C C C C C C" " " " "w " " " " "r   