
    rh                    N    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	y)	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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      /var/www/html/ai-insurance-compliance-backend/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)
r   
__future__r   torch.utils.datar   sentence_transformersr   *sentence_transformers.readers.InputExampler   r   r   r   r   <module>r!      s$    # $ 5 C"w "r   