관리-도구
편집 파일: charsetgroupprober.cpython-311.pyc
� �܋fK � �R � d dl mZmZmZ ddlmZ ddlmZmZ G d� de� � Z dS )� )�List�Optional�Union� )� CharSetProber)�LanguageFilter�ProbingStatec � � � e Zd Zej fdeddf� fd� Zd� fd�Zedee fd�� � Z edee fd�� � Zdee ef defd �Zdefd �Z� xZS )�CharSetGroupProber�lang_filter�returnNc �v �� t � � � |�� � d| _ g | _ d | _ d S )N)r r )�super�__init__�_active_num�probers�_best_guess_prober)�selfr � __class__s ��Q/opt/cloudlinux/venv/lib64/python3.11/site-packages/chardet/charsetgroupprober.pyr zCharSetGroupProber.__init__# s; �� � �����[��1�1�1����,.���;?����� c �� �� t � � � � � d| _ | j D ]-}|� � � d|_ | xj dz c_ �.d | _ d S )Nr Tr )r �resetr r �activer )r �proberr s �r r zCharSetGroupProber.reset) sf �� � ��� � ��������l� "� "�F��L�L�N�N�N� �F�M�����!����"&����r c �b � | j s| � � � | j sd S | j j S �N)r �get_confidence�charset_name�r s r r zCharSetGroupProber.charset_name2 s; � ��&� ����!�!�!��*� ��t��&�3�3r c �b � | j s| � � � | j sd S | j j S r )r r �languager s r r"