Files
INTUIA/Programa final/spacy/cli/__pycache__/assemble.cpython-312.pyc
T

27 lines
3.6 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gR
ã ó6ddlZddlmZddlmZddlZddlmZddlm Z ddl m
Z
m Z dd l m
Z
mZmZmZmZmZej&d
d d d œ¬
«e
ddd d ¬«e
dd¬«edddd¬«eddddd¬«fdej(dededeedef
d „«Zy)!éN)ÚPath)ÚOptional)Úmsgé)Úutil)Úget_sourced_componentsÚload_model_from_configé)ÚArgÚOptÚappÚ import_codeÚparse_config_overridesÚshow_validation_errorÚassembleT)Úallow_extra_argsÚignore_unknown_options)Úcontext_settings.zPath to config file)ÚhelpÚexistsÚ
allow_dashz/Output directory to store assembled pipeline in)rz--codez-czNPath to Python file with additional code (registered functions) to be importedFz --verbosez-Vz-VVz/Display more information for debugging purposesÚctxÚ config_pathÚ output_pathÚ code_pathÚverbosecó||r-tjjtj«|rt |«dk7r(|j
«stjd|d¬«t|j«}t|«t|«5tj||d¬«}ddd«tjd«td ¬
«}|j!«}t#|«}|j%«|j'g|¢¬ «5|j)«ddd«tj*d «tjd
«|:|j
«s*|j-d ¬«tj*d|«|j/|«y#1swYŒûxYw#1swYŒxYw)
Assemble a spaCy pipeline from a config file. The config file includes
all settings for initializing the pipeline. To override settings in the
config, e.g. settings that point to local paths or that you want to
experiment with, you can override them as command line options. The
--code argument lets you pass in a Python file that can be used to
register custom functions that are referenced in the config.
DOCS: https://spacy.io/api/cli#assemble
ú-zConfig file not foundr
)ÚexitsF)Ú overridesÚ interpolateNzInitializing pipelineT)Ú auto_fill)ÚdisablezInitialized pipelinezSerializing to disk)ÚparentszCreated output directory: )rÚloggerÚsetLevelÚloggingÚDEBUGÚstrrrÚfailrÚargsrrÚ load_configÚdividerr r!rÚ_link_componentsÚ select_pipesÚ