o
     ¢il,  ã                   @   s   d Z daddd„ZdS )a\  Centralized registry population for spaCy config

This module centralizes registry decorations to prevent circular import issues
with Cython annotation changes from __future__ import annotations. Functions
remain in their original locations, but decoration is moved here.

Component definitions and registrations are in spacy/pipeline/factories.py
FÚreturnNc            K      C   sÊ  t rdS ddlm}  ddlm} ddlm} ddlm} ddlm	} ddl
m} ddlm} dd	lm}m}m}	m}
m} dd
lm} ddlm} ddlm} ddlm} ddlm} ddlm} ddl m!} ddl"m#} ddl$m%} ddl&m'}m(}m)} ddl*m+}m,}m-}m.} ddl/m0} ddl1m2} ddl3m4} ddl5m6}m7}  |  8d¡|ƒ |  8d¡|ƒ |  8d¡|ƒ |  8d¡|ƒ |  8d¡|ƒ |  8d¡|ƒ |  8d¡|ƒ |  8d ¡|ƒ |  8d!¡|
ƒ |  8d"¡|	ƒ |  8d#¡|ƒ |  8d$¡|ƒ |  8d%¡|ƒ ddl
m}! dd&l9m:}" dd'l;m<}#m=}$ dd(l>m?}% dd)l@mA}& dd*lBmC}' dd+lmD}( dd,lEmF})mG}* dd-lHmI}+ dd.lJmK}, dd/lLmM}-mN}.mO}/ dd0lPmQ}0 dd1lRmS}1mT}2mU}3mV}4mW}5mX}6mY}7 dd2lZm[}8m\}9m]}:m^};m_}<m`}=ma}>mb}? dd3lcmd}@ dd4lemf}A dd5lgmh}Bmi}Cmj}D dd6lkml}Emm}Fmn}G dd7lomp}H dd8lqmr}Ims}J |  td9¡|ƒ |  td:¡|ƒ |  td;¡|ƒ |  td<¡|ƒ |  td=¡|ƒ |  td>¡|ƒ |  td?¡|ƒ |  td@¡|ƒ |  tdA¡|ƒ |  tdB¡|ƒ |  tdC¡|ƒ |  tdD¡|ƒ |  tdE¡|ƒ |  tdF¡|ƒ |  tdG¡|ƒ |  tdH¡|ƒ |  udI¡|!ƒ |  udJ¡| ƒ |  udK¡|ƒ |  udL¡|ƒ |  udM¡|ƒ |  udN¡|ƒ |  vdO¡|?ƒ |  vdP¡|=ƒ |  vdQ¡|>ƒ |  vdR¡|<ƒ |  vdS¡|9ƒ |  vdT¡|:ƒ |  vdU¡|;ƒ |  vdV¡|8ƒ |  vdW¡|(ƒ |  vdX¡|4ƒ |  vdY¡|1ƒ |  vdZ¡|2ƒ |  vd[¡|6ƒ |  vd\¡|5ƒ |  vd]¡|7ƒ |  vd^¡|3ƒ |  vd_¡|/ƒ |  vd`¡|,ƒ |  vda¡|+ƒ |  vdb¡|*ƒ |  vdc¡|)ƒ |  vdd¡|0ƒ |  wde¡|'ƒ |  wdf¡|&ƒ |  wdg¡|%ƒ |  wdh¡|-ƒ |  wdi¡|.ƒ |  wdj¡|@ƒ |  wdk¡|"ƒ |  wdl¡|9ƒ |  wdm¡|Aƒ |  xdn¡|Hƒ |  xdo¡|$ƒ |  xdp¡|#ƒ |  ydq¡|Iƒ |  ydr¡|Jƒ |  zds¡|Fƒ |  zdt¡|Gƒ |  zdu¡|Eƒ |  {dv¡|Bƒ |  {dw¡|Cƒ |  {dx¡|Dƒ dya dS )zzÓPopulate the registry with all necessary components.

    This function should be called before accessing the registry, to ensure
    it's populated. The function uses a global flag to prevent repopulation.
    Né   )Úcreate_tokenizer)Úcreate_thai_tokenizer)Úcreate_vietnamese_tokenizer)Úcreate_chinese_tokenizer)Úload_lookups_data)Úmake_levenshtein_compare)Úcreate_candidatesÚcreate_candidates_batchÚempty_kbÚempty_kb_for_configÚload_kb)Úmake_attribute_ruler_scorer)Úmake_parser_scorer)Úmake_entity_linker_scorer)Úmake_entity_ruler_scorer)Úmake_lemmatizer_scorer)Úmake_morphologizer_scorer)Úmake_ner_scorer)Úmake_senter_scorer)Úmake_span_finder_scorer)Ú%make_overlapping_labeled_spans_scorerÚ"make_preserve_existing_ents_filterÚmake_prioritize_new_ents_filter)Úbuild_ngram_range_suggesterÚbuild_ngram_suggesterÚbuild_preset_spans_suggesterÚmake_spancat_scorer)Úmake_tagger_scorer)Úmake_textcat_scorer)Úmake_textcat_multilabel_scorer)Úmake_first_longest_spans_filterÚregistryz#spacy.first_longest_spans_filter.v1zspacy.ngram_suggester.v1zspacy.ngram_range_suggester.v1zspacy.preset_spans_suggester.v1z#spacy.prioritize_new_ents_filter.v1z(spacy.prioritize_existing_ents_filter.v1zspacy.levenshtein_compare.v1zspacy.KBFromFile.v1zspacy.EmptyKB.v2zspacy.EmptyKB.v1zspacy.CandidateGenerator.v1z spacy.CandidateBatchGenerator.v1zspacy.LookupsDataLoader.v1)ÚPrecomputableAffine)Ú'create_models_and_pipes_with_nvtx_rangeÚcreate_models_with_nvtx_range)Úextract_ngrams)Úextract_spans)ÚFeatureExtractor)Úbuild_nel_encoder)Úcreate_pretrain_charactersÚcreate_pretrain_vectors)Úbuild_tb_parser_model)Úbuild_finder_model)Úbuild_linear_logisticÚbuild_mean_max_reducerÚbuild_spancat_model)Úbuild_tagger_model)Úbuild_bow_text_classifierÚbuild_bow_text_classifier_v3Úbuild_reduce_text_classifierÚ build_simple_cnn_text_classifierÚbuild_text_classifier_lowdataÚbuild_text_classifier_v2Ú%build_textcat_parametric_attention_v1)ÚBiLSTMEncoderÚCharacterEmbedÚMaxoutWindowEncoderÚMishWindowEncoderÚMultiHashEmbedÚbuild_hash_embed_cnn_tok2vecÚbuild_Tok2Vec_modelÚtok2vec_listener_v1)ÚStaticVectors)ÚTransitionModel)Úcreate_combined_augmenterÚcreate_lower_casing_augmenterÚcreate_orth_variants_augmenter)Úconfigure_minibatchÚ"configure_minibatch_by_padded_sizeÚconfigure_minibatch_by_words)Úcreate_copy_from_base_model)Úconsole_loggerÚconsole_logger_v3zspacy.tagger_scorer.v1zspacy.ner_scorer.v1zspacy.entity_ruler_scorer.v1zspacy.senter_scorer.v1zspacy.textcat_scorer.v1zspacy.textcat_scorer.v2z"spacy.textcat_multilabel_scorer.v1z"spacy.textcat_multilabel_scorer.v2zspacy.lemmatizer_scorer.v1zspacy.span_finder_scorer.v1zspacy.spancat_scorer.v1zspacy.entity_linker_scorer.v1z)spacy.overlapping_labeled_spans_scorer.v1zspacy.attribute_ruler_scorer.v1zspacy.parser_scorer.v1zspacy.morphologizer_scorer.v1zspacy.Tokenizer.v1zspacy.ja.JapaneseTokenizerzspacy.zh.ChineseTokenizerzspacy.ko.KoreanTokenizerzspacy.vi.VietnameseTokenizerzspacy.th.ThaiTokenizerzspacy.Tok2VecListener.v1zspacy.HashEmbedCNN.v2zspacy.Tok2Vec.v2zspacy.MultiHashEmbed.v2zspacy.CharacterEmbed.v2zspacy.MaxoutWindowEncoder.v2zspacy.MishWindowEncoder.v2zspacy.TorchBiLSTMEncoder.v1zspacy.EntityLinker.v2zspacy.TextCatCNN.v2zspacy.TextCatBOW.v2zspacy.TextCatBOW.v3zspacy.TextCatEnsemble.v2zspacy.TextCatLowData.v1z#spacy.TextCatParametricAttention.v1zspacy.TextCatReduce.v1zspacy.SpanCategorizer.v1zspacy.SpanFinder.v1zspacy.TransitionBasedParser.v2zspacy.PretrainVectors.v1zspacy.PretrainCharacters.v1zspacy.Tagger.v2zspacy.FeatureExtractor.v1zspacy.extract_spans.v1zspacy.extract_ngrams.v1zspacy.LinearLogistic.v1zspacy.mean_max_reducer.v1zspacy.StaticVectors.v2zspacy.PrecomputableAffine.v1zspacy.CharEmbed.v1zspacy.TransitionModel.v1zspacy.copy_from_base_model.v1zspacy.models_with_nvtx_range.v1z)spacy.models_and_pipes_with_nvtx_range.v1zspacy.ConsoleLogger.v2zspacy.ConsoleLogger.v3zspacy.batch_by_padded.v1zspacy.batch_by_words.v1zspacy.batch_by_sequence.v1zspacy.combined_augmenter.v1zspacy.lower_case.v1zspacy.orth_variants.v1T)|ÚREGISTRY_POPULATEDÚlang.jar   Úlang.koÚlang.thr   Úlang.vir   Úlang.zhr   Úlanguager   Úmatcher.levenshteinr   Úml.models.entity_linkerr	   r
   r   r   r   Úpipeline.attributerulerr   Úpipeline.dep_parserr   Úpipeline.entity_linkerr   Úpipeline.entityrulerr   Úpipeline.lemmatizerr   Úpipeline.morphologizerr   Úpipeline.nerr   Úpipeline.senterr   Úpipeline.span_finderr   Úpipeline.span_rulerr   r   r   Úpipeline.spancatr   r   r   r   Úpipeline.taggerr   Úpipeline.textcatr   Úpipeline.textcat_multilabelr    Úutilr!   r"   ÚmiscÚml._precomputable_affiner#   Úml.callbacksr$   r%   Úml.extract_ngramsr&   Úml.extract_spansr'   Úml.featureextractorr(   r)   Úml.models.multi_taskr*   r+   Úml.models.parserr,   Úml.models.span_finderr-   Úml.models.spancatr.   r/   r0   Úml.models.taggerr1   Úml.models.textcatr2   r3   r4   r5   r6   r7   r8   Úml.models.tok2vecr9   r:   r;   r<   r=   r>   r?   r@   Úml.staticvectorsrA   Úml.tb_frameworkrB   Útraining.augmentrC   rD   rE   Útraining.batchersrF   rG   rH   Útraining.callbacksrI   Útraining.loggersrJ   rK   ÚscorersÚ
tokenizersÚarchitecturesÚlayersÚ	callbacksÚloggersÚbatchersÚ
augmenters)KÚcreate_japanese_tokenizerÚcreate_korean_tokenizerr   r   r   r   r   r	   r
   r   r   r   r   r   r   Úmake_entityruler_scorerr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   © r‚   úG/home/ubuntu/.local/lib/python3.10/site-packages/spacy/registrations.pyÚpopulate_registry   s  ÿÿÿ$(	
ÿÿÿÿÿr„   )r   N)Ú__doc__rL   r„   r‚   r‚   r‚   rƒ   Ú<module>   s    
