
    /;jin                     D    d dl Z d dlZ G d d          Z e            ZdS )    Nc                       e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZddddddddZddddddddZg dZddgZd  Zd! Zd"S )#Config
z

z


_ 	*/,.BuY   0123456789.几二三四五六七八九十千万亿兆零１２３４５６７８９０％u   ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺａｂｃｄｅｆｇｈｉｇｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ／・－zNhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/postag.zipzPhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/medicine.zipzOhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/tourism.zipzLhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/news.zipzKhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/web.zipzMhttps://github.com/lancopku/pkuseg-python/releases/download/v0.0.16/mixed.zipzWhttps://github.com/explosion/spacy-pkuseg/releases/download/v0.0.26/spacy_ontonotes.zip)postagmedicinetourismnewswebmixedspacy_ontonotes@afdf15f4e39bc47a39be4c37e3761b0c8f6ad1783f3cd3aff52984aebc0a1da9@773d655713acd27dd1ea9f97d91349cc1b6aa2fc5b158cd742dc924e6f239dfc@1c84a0366fe6fda73eda93e2f31fd399923b2f5df2818603f426a200b05cbce9@18188b68e76b06fc437ec91edf8883a537fe25fa606641534f6f004d2f9a2e42@4867f5817f187246889f4db259298c3fcee07c0b03a2d09444155b28c366579e@c72a6e4646916044246916c6fa69ae6f67cb8a5b06bc9ca615f1322d9d4ae8ad@b216e7f92de7ae285aeab8feba2faa8ea8216e5995ff6fb3d391cc8356db1bfe)r   r   r   r   r   r   r   r   c                 v   t           j                            t          j        dd                    | _        t           j                            dd          | _        t           j                            dd          | _        t          j	                    | _
        | j
        j        | _        t           j                            | j        dd          | _        t           j                            dd          | _        t           j                            dd          | _        d	| _        d
| _        d| _        d| _        d| _        d| _        d| _        t           j                            | j        d          | _        d| _        d| _        d| _        d| _        d| _        d| _        d | _        d| _        | j        | _         d| _!        d| _"        t           j                            | j        dd          | _#        d| _$        d| _%        t           j                            | j        d          | _&        t           j                            | j        d          | _'        t           j                            | j        d          | _(        t           j                            | j        d          | _)        d| _*        d| _+        d| _,        d| _-        d | _.        t           j                            | j        d!          | _/        t           j                            | j        d"          | _0        t           j                            | j        d#          | _1        t           j                            | j        d$          | _2        t           j                            t           j        3                    t           j        4                    tj                              d%d&          | _6        t           j                            | j6        d'          | _7        d| _8        d| _9        d| _:        d(| _;        d)| _<        d*| _=        d| _>        d S )+NPKUSEG_HOMEz	~/.pkusegdatazsmall_training.utf8zsmall_test.utf8z.pkusegtempzsmall_test_output.utf8zcrf.adfg?r   f1      
   outputTgףp=
?g333333?z
rawinputs/zinputs/zentityoutputs/L2ztrain.conll.txtztrain.feat.txtztest.conll.txtztest.feat.txtztune.txtztrainLog.txtzsummarizeResult.txtzrawResult.txtzoutputTag-{}.txtz
ftrain.txtz
gtrain.txtz	ftest.txtz	gtest.txtmodelsctb8z	model.txt         )?ospath
expandusergetenvpkuseg_homejoin	trainFiletestFiletempfileTemporaryDirectory_tmp_dirnamehomepathtempFilereadFile
outputFilemodelOptimizerrate0random
evalMetrictrainSizeScalettlIternUpdate	outFoldersaverawResWrite	miniBatchnThreadupperlowermetricregoutDir
testrawDirtestinputDirtempDirtestoutputDirweightRegModec_trainf_trainc_testf_testfTunefLogfResSumfResRawfOutputfFeatureTrain
fGoldTrainfFeatureTest	fGoldTestdirnamerealpath__file__modelDirfModelnumLetterNormfeatureTrimwordFeaturewordMaxwordMinnLabelorderselfs    M/root/voice-cloning/.venv/lib/python3.11/site-packages/spacy_pkuseg/config.py__init__zConfig.__init__*   s   7--bi{.S.STTf.CDDV->?? 355*T]IvFFV->??',,v/GHH'

  	  	  dmX>>	

 n&%w||DM9fEE- "w||DM3DEEw||DM3CDDgll4=2BCCgll4=/BB
"	,&)W\\$-FF',,t}lCCGLLDDdm[AAGOOBG,,X66776
 
 gll4=+>> "


    c                 2   | j         dk    rd| _        n5| j         dk    rd| _        n"| j         dk    rd| _        nt          d          | j        dk    sJ | j        dk    sJ | j        dk    sJ | j        dk    sJ | j        dk    sJ | j        dk    sJ d S )	Nr    zf-scoreztok.accztoken-accuracyzstr.acczstring-accuracyzinvalid eval metricr   )	r>   rI   	Exceptionr<   r?   r@   rA   rE   rJ   rj   s    rl   globalCheckzConfig.globalCheckw   s    ?d""#DKK_	))*DKK_	))+DKK1222zA~~~~"Q&&&&|a|a~!!!!x!||||||rn   N)__name__
__module____qualname__lineEnd	biLineEnd
triLineEndundrlnblanktabstarslashcommadelimInFeaturer   numlettermark
model_urls
model_hashavailable_modelsmodels_with_dictrm   rq    rn   rl   r   r      s        GIJFE
CDEENA
eC uFDbfd^\`t J UVURQS] J ZYY"I.K K KZ    rn   r   )r+   r3   r   configr   rn   rl   <module>r      sY    				 @ @ @ @ @ @ @ @F 
rn   