o
    S"ågÀ  ã                   @  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                   @  s*   e Zd ZdZ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.
    Úexamplesúlist[InputExample]Úmodelr   c                 C  s
   || _ d S ©N©r   )Úselfr   r	   © r   úq/mnt/skqttb/ctump_chatbot/chatbot/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)r   r   r	   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s
    
r   N)
r   Ú
__future__r   Útorch.utils.datar   Úsentence_transformersr   Ú*sentence_transformers.readers.InputExampler   r   r   r   r   r   Ú<module>   s    