
    jl                     `    d dl Z d dlmZ d dlmZ d dlmZmZ d dlm	Z	  G d dee          Z
dS )    N)AbbreviationReplacer)BetweenPunctuation)CommonStandard)replace_punctuationc                   J    e Zd ZdZ G d de          Z G d de          ZdS )Chinesezhc                       e Zd Zg ZdS )Chinese.AbbreviationReplacerN)__name__
__module____qualname__SENTENCE_STARTERS     \/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/site-packages/pysbd/lang/chinese.pyr   r      s        r   r   c                   6     e Zd Z fdZd Zd Zd Zd Z xZS )Chinese.BetweenPunctuationc                 J    t                                          |           d S N)super__init__)selftext	__class__s     r   r   z#Chinese.BetweenPunctuation.__init__   s!    GGT"""""r   c                 8    |                                   | j        S r   ))sub_punctuation_between_quotes_and_parensr   r   s    r   replacez"Chinese.BetweenPunctuation.replace   s    ::<<<9r   c                 T    d}t          j        |t          | j                  | _        d S )Nu/   《(?=(?P<tmp>[^》\\]+|\\{2}|\\.)*)(?P=tmp)》resubr   r   )r   )BETWEEN_DOUBLE_ANGLE_QUOTATION_MARK_REGEXs     r   5sub_punctuation_between_double_angled_quotation_markszPChinese.BetweenPunctuation.sub_punctuation_between_double_angled_quotation_marks   s*    8j5HJ]i! !DIIIr   c                 T    d}t          j        |t          | j                  | _        d S )Nu/   「(?=(?P<tmp>[^」\\]+|\\{2}|\\.)*)(?P=tmp)」r"   )r   BETWEEN_L_BRACKET_REGEXs     r   !sub_punctuation_between_l_bracketz<Chinese.BetweenPunctuation.sub_punctuation_between_l_bracket   s*    &X#68Ki! !DIIIr   c                 V    |                                   |                                  d S r   )r&   r)   r   s    r   r   zDChinese.BetweenPunctuation.sub_punctuation_between_quotes_and_parens"   s,    FFHHH2244444r   )	r   r   r   r   r    r&   r)   r   __classcell__)r   s   @r   r   r      st        	# 	# 	# 	# 	#	 	 		! 	! 	!
	! 	! 	!
	5 	5 	5 	5 	5 	5 	5r   r   N)r   r   r   iso_coder   r   r   r   r   r	   r	      so        H    3   5 5 5 5 5/ 5 5 5 5 5r   r	   )r#   pysbd.abbreviation_replacerr   pysbd.between_punctuationr   pysbd.lang.commonr   r   pysbd.punctuation_replacerr   r	   r   r   r   <module>r1      s    				 < < < < < < 8 8 8 8 8 8 . . . . . . . . : : : : : :5 5 5 5 5fh 5 5 5 5 5r   