
    Ch                    N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r	g)	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                  .    \ rS rSrSrSS jrS rS rSrg)	SentencesDataset   z
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                    Xl         g Nexamples)selfr   models      g/var/www/html/shao/venv/lib/python3.13/site-packages/sentence_transformers/datasets/SentencesDataset.py__init__SentencesDataset.__init__   s         c                     U R                   U   $ r   r   )r   items     r   __getitem__SentencesDataset.__getitem__   s    }}T""r   c                ,    [        U R                  5      $ r   )lenr   )r   s    r   __len__SentencesDataset.__len__   s    4==!!r   r   N)r   zlist[InputExample]r   r   )	__name__
__module____qualname____firstlineno____doc__r   r   r   __static_attributes__ 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   