a
    ãÀhÀ  ã                   @  sH   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„ 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                   @  s0   e Zd ZdZdddœ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.
    zlist[InputExample]r   )ÚexamplesÚmodelc                 C  s
   || _ d S ©N©r   )Úselfr   r   © r   úk/var/www/html/assistant/venv/lib/python3.9/site-packages/sentence_transformers/datasets/SentencesDataset.pyÚ__init__   s    zSentencesDataset.__init__c                 C  s
   | j | S r	   r
   )r   Úitemr   r   r   Ú__getitem__   s    zSentencesDataset.__getitem__c                 C  s
   t | jƒS r	   )Úlenr   )r   r   r   r   Ú__len__   s    zSentencesDataset.__len__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s   r   N)
r   Ú
__future__r   Ztorch.utils.datar   Zsentence_transformersr   Z*sentence_transformers.readers.InputExampler   r   r   r   r   r   Ú<module>   s
   