Ë
    Ârœh¼  ã                  ó<   — d Z ddlmZ ddlZddlmZ  G d„ d«      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.

Instead, you should create a `datasets` `Dataset` for training: https://huggingface.co/docs/datasets/create_dataset
é    )ÚannotationsNé   )ÚInputExamplec                  ó   — e Zd ZdZd„ Zdd„Zy)ÚPairedFilesReaderz/Reads in the a Pair Dataset, split in two filesc                ó   — || _         y )N)Ú	filepaths)Úselfr	   s     ú‚/var/www/html/ai-insurance-compliance-backend/venv/lib/python3.12/site-packages/sentence_transformers/readers/PairedFilesReader.pyÚ__init__zPairedFilesReader.__init__   s	   € Ø"ˆó    c           	     óÆ  — g }| j                   D ]I  }|j                  d«      rt        j                  |dd¬«      nt        |d¬«      }|j	                  |«       ŒK g }d}|s€g }|D ],  }|j                  «       }|dk(  rd} n|j	                  |«       Œ. |r	 |S |j	                  t        t        t        |«      «      |d¬	«      «       |d
kD  rt        |«      |k\  r	 |S |sŒ€|S )Nz.gzÚrtzutf-8)ÚencodingFÚ Tr   )ÚguidÚtextsÚlabelr   )	r	   ÚendswithÚgzipÚopenÚappendÚreadliner   ÚstrÚlen)	r
   Úmax_examplesÚfInsÚfilepathÚfInÚexamplesÚeofr   Útexts	            r   Úget_exampleszPairedFilesReader.get_examples   sù   € ØˆØŸ™ò 	ˆHð ×$Ñ$ UÔ+ô —	‘	˜( D°7Õ;ä˜(¨WÔ5ð ð
 K‰K˜Õð	ð ˆàˆÙØˆEØò #Ø—|‘|“~à˜2’:ØCÙà—‘˜TÕ"ð#ñ Øð ˆð	 O‰OœL¬c´#°h³-Ó.@ÈÐUVÔWÔXØ˜aÒ¤C¨£M°\Ò$AØàˆò% ð$ ˆr   N)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r#   © r   r   r   r      s   „ Ù9ò#ôr   r   )r'   Ú
__future__r   r   r   r   r   r(   r   r   ú<module>r*      s   ðñõ #ã å ÷%ò %r   