+
    œ°³jN  ã                   óh   € R t ^RIHt ^RIHt ^RIHtHtHt ^RI	H
t
 ]
 ! R R]4      4       tR.tR# )z
Processor class for MarkupLM.
)Ú
TensorType)ÚProcessorMixin)ÚBatchEncodingÚPaddingStrategyÚTruncationStrategy)Úauto_docstringc                   óV   a a€ ] tR t^t oRtV 3R lt]RV3R lR ll4       tRtVt	V ;t
# )ÚMarkupLMProcessorTc                ó&   <€ \         SV `  W4       R # )N)ÚsuperÚ__init__)ÚselfÚfeature_extractorÚ	tokenizerÚ	__class__s   &&&€Úq/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/markuplm/processing_markuplm.pyr   ÚMarkupLMProcessor.__init__   s   ø€ Ü‰ÑÐ*Ö6ó    c                ó
  <€ V ^8„  d   QhRS[ RS[ S[,          S[,          RS[ S[,          S[,          RS[R,          RS[RS[R,          RS[ R,          R	S[ R,          R
S[ RS[ RS[ RS[ RS[ RS[S[,          R,          RS[/# )é   Úadd_special_tokensÚpaddingÚ
truncationÚ
max_lengthNÚstrideÚpad_to_multiple_ofÚreturn_token_type_idsÚreturn_attention_maskÚreturn_overflowing_tokensÚreturn_special_tokens_maskÚreturn_offsets_mappingÚreturn_lengthÚverboseÚreturn_tensorsÚreturn)ÚboolÚstrr   r   Úintr   r   )ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚMarkupLMProcessor.__annotate__    sá   ø€ ÷ Zñ Zñ !ðZñ ™•™oÕ-ðZñ ™3•JÑ!3Õ3ðZñ ˜$•JðZñ ðZñ   $�JðZñ  $ d�{ðZñ  $ d�{ðZñ $(ðZñ  %)ð!Zñ" !%ð#Zñ$ ð%Zñ& ð'Zñ( ™jÕ(¨4Õ/ð)Zñ, 
ñ-Zr   c                ó  € V P                   '       dK   Vf   \        R4      hVf	   Vf   Ve   \        R4      hV P                  V4      pVR,          pVR,          pM"Ve   \        R4      hVe   Vf   \        R4      hVe,   V P                   '       d   \        V\        4      '       d   V.pV P
                  ! R/ RVe   TMTbR	Ve   TMRbRVbR
VbRVbRVbRVbRV	bRV
bRVbRVbRVbRVbRVbRVbRVbRVbRVbVB pV# )aç  
html_strings (`str` or `list[str]`, *optional*):
    Raw HTML strings to parse and process. When `parse_html=True` (default), these strings are parsed
    to extract nodes and xpaths automatically. If provided, `nodes`, `xpaths`, and `node_labels` should
    not be provided. Required when `parse_html=True`.
nodes (`list[list[str]]`, *optional*):
    Pre-extracted HTML nodes as a list of lists, where each inner list contains the text content of nodes
    for a single document. Required when `parse_html=False`. Should not be provided when `parse_html=True`.
xpaths (`list[list[str]]`, *optional*):
    Pre-extracted XPath expressions corresponding to the nodes. Should be a list of lists with the same
    structure as `nodes`, where each XPath identifies the location of the corresponding node in the HTML
    tree. Required when `parse_html=False`. Should not be provided when `parse_html=True`.
node_labels (`list[list[int]]`, *optional*):
    Labels for the nodes, typically used for training or fine-tuning tasks. Should be a list of lists
    with the same structure as `nodes`, where each label corresponds to a node. Optional and only used
    when `parse_html=False`.
questions (`str` or `list[str]`, *optional*):
    Question strings for question-answering tasks. When provided, the tokenizer processes questions
    as the first sequence and nodes as the second sequence (text_pair). If a single string is provided,
    it is converted to a list to match the batch dimension of the parsed HTML.
NzDMake sure to pass HTML strings in case `parse_html` is set to `True`zUPlease don't pass nodes, xpaths nor node labels in case `parse_html` is set to `True`ÚnodesÚxpathsz@You have passed HTML strings but `parse_html` is set to `False`.zIMake sure to pass nodes and xpaths in case `parse_html` is set to `False`ÚtextÚ	text_pairÚnode_labelsr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   © )Ú
parse_htmlÚ
ValueErrorr   Ú
isinstancer&   r   )r   Úhtml_stringsr-   r.   r1   Ú	questionsr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   ÚkwargsÚfeaturesÚencoded_inputss   &&&&&&&&&&&&&&&&&&&&,  r   Ú__call__ÚMarkupLMProcessor.__call__   sŒ  € ð\ �?�?ˆ?ØÒ#Ü Ð!gÓhÐhàÒ  FÒ$6¸+Ò:QÜ Økóð ð ×-Ñ-¨lÓ;ˆHØ˜WÕ%ˆEØ˜hÕ'‰FàÒ'Ü Ð!cÓdÐdØŠ} ¢Ü Ð!lÓmÐmð Ò  T§_§_ _Ü˜)¤S×)Ò)Ø&˜K�	àŸšò 
Ø'Ò3‘¸øð
à(Ò4‘e¸$øð
ñ ð
ñ $ð	
ñ
  2ð
ñ ð
ñ "ð
ñ "ð
ñ ð
ñ  2ð
ñ #8ð
ñ #8ð
ñ '@ð
ñ (Bð
ñ $:ð
ñ  (ð!
ñ" ð#
ñ$ *Øñ'
ˆð, Ðr   r2   )NNNNNTFNNé    NNNFFFFTN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r3   r   r   r;   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r)   s   @@r   r	   r	      s1   ù‡ € à€Jõ7ð ÷Zñ Zó ÷Zð Zr   r	   N)Ú__doc__Ú
file_utilsr   Úprocessing_utilsr   Útokenization_utils_baser   r   r   Úutilsr   r	   Ú__all__r2   r   r   Ú<module>rK      sD   ðñõ %Ý .ß YÑ YÝ #ð ôa˜ó aó ðaðH Ð
‚r   