ó qP–[c@sıdZddlZddlmZddlmZejdƒZgd5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFgD]-Zejd+ed,ejƒedf^q~Z d-„Z d.„Z d/„Z d0„Z d1„Zd2„Zd3„Zd4„ZdS(Gs+ from https://github.com/keithito/tacotron iÿÿÿÿN(t unidecodei(tnormalize_numberss\s+tmrstmisesstmrtmistertdrtdoctortsttsainttcotcompanytjrtjuniortmajtmajortgentgeneraltdrstdoctorstrevtreverendtltt lieutenantthont honorabletsgttsergeanttcapttcaptaintesqtesquiretltdtlimitedtcoltcoloneltfttforts\b%s\.icCs0x)tD]!\}}tj|||ƒ}qW|S(N(t_abbreviationstretsub(ttexttregext replacement((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytexpand_abbreviations.scCs t|ƒS(N(R(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytexpand_numbers4scCs |jƒS(N(tlower(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pyt lowercase8scCstjtd|ƒS(Nt (R'R(t_whitespace_re(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytcollapse_whitespace<scCs t|ƒS(N(R(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytconvert_to_ascii@scCst|ƒ}t|ƒ}|S(sPBasic pipeline that lowercases and collapses whitespace without transliteration.(R/R2(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytbasic_cleanersDs  cCs(t|ƒ}t|ƒ}t|ƒ}|S(s;Pipeline for non-English text that transliterates to ASCII.(R3R/R2(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pyttransliteration_cleanersKs   cCs@t|ƒ}t|ƒ}t|ƒ}t|ƒ}t|ƒ}|S(sGPipeline for English text, including number and abbreviation expansion.(R3R/R-R,R2(R)((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pytenglish_cleanersSs      (RR(smrR(sdrR(sstR (scoR (R R (smajsmajor(sgensgeneral(RR(srevR(sltR(RR(ssgtR(RR(RR(sltdR!(scolR#(sftR%(t__doc__R'RtnumbersRtcompileR1txt IGNORECASER&R,R-R/R2R3R4R5R6(((s=/home/alex/PyTorch_Projects/NVIDIA-tacotron2/text/cleaners.pyts> :