o
    ³©iË  ã                	   @   s"  d dl mZ d dlmZ defdd„ZdZg d¢dd	gg d
¢ddgg d¢dœZg d¢g d¢dœZg d¢g d¢g d¢g d¢g d¢dœZ	dedƒidedƒedƒdœiedƒedƒedƒdœed ƒed!ƒed"ƒd#œd$œed%ƒed&ƒdœed'ƒed(ƒed)ƒd#œd$œed*ƒed+ƒed,ƒed-ƒd.œd/œZ
d0S )1é    )Úfiles)ÚTextNormalizerÚreturnc                 C   s   t dƒ | ¡} tt| ƒƒS )z‰
    Load a FST from the fsts directory.

    Args:
        fst_path: The path to the FST file.
    Returns:
        The loaded FST.
    zwetext.fsts)r   ÚjoinpathÚ
normalizerÚstr)Úfst_path© r	   úD/home/ubuntu/.local/lib/python3.10/site-packages/wetext/constants.pyÚload_fst   s   	r   z<EOS>)ÚyearÚmonthÚdayÚdenominatorÚ	numerator)r   r   Úvaluer   Úcurrency)ÚnoonÚhourÚminuteÚsecond)ÚdateÚfractionÚmeasureÚmoneyÚtime)Úpreserve_orderÚtextr   r   r   )Úinteger_partÚfractional_partÚquantityÚcurrency_maj)r   r   )Úsignr   r   )r   r   r   )r   r   Údecimal)r   r   r   r   Útraditional_to_simpleztraditional_to_simple.fstÚtnzen/tn/tagger.fstzen/tn/verbalizer.fst)ÚtaggerÚ
verbalizerzzh/tn/tagger.fstzzh/tn/verbalizer.fstz!zh/tn/verbalizer_remove_erhua.fst)r&   r'   Úverbalizer_remove_erhuazzh/itn/tagger.fstzzh/itn/tagger_enable_0_to_9.fstzzh/itn/verbalizer.fst)r&   Útagger_enable_0_to_9r'   )r%   Úitnzja/tn/tagger.fstzja/tn/verbalizer.fstzja/itn/tagger.fstzja/itn/tagger_enable_0_to_9.fstzja/itn/verbalizer.fstzfull_to_half.fstzremove_interjections.fstzremove_puncts.fstztag_oov.fst)Úfull_to_halfÚremove_interjectionsÚremove_punctsÚtag_oov)Ú
preprocessÚenÚzhÚjaÚpostprocessN)Úimportlib.resourcesr   Úkaldifstr   r   r   ÚEOSÚ	TN_ORDERSÚEN_TN_ORDERSÚ
ITN_ORDERSÚFSTSr	   r	   r	   r
   Ú<module>   sb   ûþû	ÿþÿýýúþýûü
ß