o
    5ti                     @   s,   d dl mZ ddlmZ G dd deZdS )    )	lru_cache   )BaseTokenizerc                   @   s.   e Zd Zdd Zdd Zedddd Zd	S )
TokenizerCharc                 C   s   dS )Nchar selfr   r   W/home/ubuntu/.local/lib/python3.10/site-packages/sacrebleu/tokenizers/tokenizer_char.py	signature      zTokenizerChar.signaturec                 C   s   d S Nr   r   r   r   r
   __init__	   r   zTokenizerChar.__init__i   )maxsizec                 C   s   d dd |D S )zTokenizes all the characters in the input line.

        :param line: a segment to tokenize
        :return: the tokenized line
         c                 s   s    | ]}|V  qd S r   r   ).0r   r   r   r
   	<genexpr>   s    z)TokenizerChar.__call__.<locals>.<genexpr>)join)r	   liner   r   r
   __call__   s   zTokenizerChar.__call__N)__name__
__module____qualname__r   r   r   r   r   r   r   r
   r      s
    r   N)	functoolsr   tokenizer_baser   r   r   r   r   r
   <module>   s    