관리-도구
편집 파일: sbcharsetprober.cpython-36.pyc
3 ��Ud� � @ sX d dl mZ ddlmZ ddlmZmZmZ eddddd d ddg�ZG d d� de�Z dS )� )� namedtuple� )� CharSetProber)�CharacterCategory�ProbingState�SequenceLikelihood�SingleByteCharSetModel�charset_name�language�char_to_order_map�language_model�typical_positive_ratio�keep_ascii_lettersZalphabetc sb e Zd ZdZdZdZdZd� fdd� Z� fd d �Ze dd� �Z e d d� �Zdd� Zdd� Z � ZS )�SingleByteCharSetProber�@ i gffffff�?g�������?FNc sJ t t| �j� || _|| _|| _d | _d | _d | _d | _ d | _ | j� d S )N)�superr �__init__�_model� _reversed�_name_prober�_last_order� _seq_counters�_total_seqs�_total_char� _freq_char�reset)�self�model�reversed�name_prober)� __class__� �:/tmp/pip-build-nvpq87xi/chardet/chardet/sbcharsetprober.pyr 3 s z SingleByteCharSetProber.__init__c s: t t| �j� d| _dgtj� | _d| _d| _d| _ d S )N� r ) r r r r r �get_num_categoriesr r r r )r )r r! r"