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

72 lines
8.8 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gxãóBddlZddlZddlmZddlmZmZmZmZm Z ddl
Z
ddl m Z m
Z
ddlmZmZddlmZdd lmZmZmZmZdd
lmZmZej6d «edd ¬
«edddd¬
«eddddd¬
«edddd¬
«edddd¬
«fdeededed ed!ef
d"„«Z d/dd#ddd$œdeededed eeed!ed%e eeff d&„Z d%eeeffd'„Z!d#d(œdeded%eeeffd)„Z"ded%eefd*„Z#ded%eeeffd+„Z$ d0d,eeefd-eed eeed%efd.„Z%y)1éN)ÚPath)ÚAnyÚDictÚListÚOptionalÚUnion)ÚMarkdownRendererÚPrinteré)ÚaboutÚutil)Úimportlib_metadataé)ÚArgÚOptÚappÚstring_to_list)Úget_latest_versionÚget_model_filenameÚinfoz Optional loadable spaCy pipeline)ÚhelpFz
--markdownz-mdz#Generate Markdown for GitHub issuesz--silentz-sz-Sz"Don't print anything (just return)Úlabelsz --excludez-ez2Comma-separated keys to exclude from the print-outz--urlz-uzLPrint the URL to download the most recent compatible version of the pipelineÚmodelÚmarkdownÚsilentÚexcludeÚurlcó:t|«}t|||||¬«y)aa
Print info about spaCy installation. If a pipeline is specified as an argument,
print its meta information. Flag --markdown prints details in Markdown for easy
copy-pasting to GitHub issues.
Flag --url prints only the download URL of the most recent compatible
version of the pipeline.
DOCS: https://spacy.io/api/cli#info
©rrrrN)rr)rrrrrs úOC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/info.pyÚinfo_clir!s%ô(˜%€GÜØ
ØØØØ ö óTrÚreturncó¸t|| ¬«}|sg}|r7|!d|d}t|«}t|d«|S|jdd¬«n"|rd|d}t ||¬ «}n d
}t «}j
«D cic]&\}} |j«jd d «| “Œ(}
}} d
|vr?t|d
t«r,djd|d
j
«D««|d
<t||¬«} |r|s t| «| S|s;|j
«D cic]
\}} ||vsŒ || “Œ} }} |j| |¬«|
Scc} }wcc} }w)Úno_printÚprettyzDownload info for pipeline 'ú download_urlz%--url option requires a pipeline namer©ÚexitszInfo about pipeline '©rzInfo about spaCyú Ú_Ú Pipelinesz, c3ó2K|]\}}|d|dŒy­w)z)N©)Ú.0Úvs r ú <genexpr>zinfo.<locals>.<genexpr>Hs%èø€ð&
Ù%>™T˜Q ˆqˆcA3aŒLÑ%>ùs)Útitler)r7)r
Úinfo_model_urlÚprintÚfailÚ
info_modelÚ
info_spacyÚitemsÚlowerÚreplaceÚ
isinstanceÚdictÚjoinÚ get_markdownÚtable)
rrrrrÚmsgr7ÚdataÚkr5Úraw_dataÚ
markdown_dataÚ
table_datas
r rr-srô ˜6¨f¨*Ô
5€C٠؈Ù
Ø Ð Ø2°5°'¸Ð;ˆ! (ˆ $ ˆ H‰HÐ<ÀAˆ Ø w¨aÐ0ˆÜ˜Ô/‰à"ˆÜ|ˆØ;?¿:¹:¼<ÔH¹<±4°1°a×! # +¨QÑ.¸<€HÑœz¨$¨{Ñ*;¼TÔ ŸI™Iñ&
Ø%)¨+Ñ%6×%<Ñ%<Ô%>ó&
ó
ˆˆ[Ñô¨U¸GÔD€MÙÙÜ  ØÐÙ Ø'+§z¡z¤|ÔH¡|™t˜q !°qÀÒ7Ga˜d |ˆ
Ñ * Eˆ Ô €OùóIùóIsÂ+EÄ& EÄ3EcóTi}tj«D],}|jdd«}tj|«||<Œ.tj
t
tt«jj«tj«tj«|dœS)z\Generate info about the current spaCy intallation.
RETURNS (dict): The spaCy info.
ú-r.)z
spaCy versionÚLocationÚPlatformzPython versionr/) r
Úget_installed_modelsr?Úget_package_versionr Ú __version__ÚstrrÚ__file__ÚparentÚplatformÚpython_version)Ú
all_modelsÚpkg_nameÚpackages r r<r<Vsð
€JÜ×/ˆØ×" Ó,ˆÜ"×6°xÓ@ˆ
ðלœX›××"×ñ  ðr"r,cót|| ¬«}tj|«rtj|«}n t |«}|dz }|j «s|j
d|d¬«tj|«}|j«|k7rt|j««|d<nt|«|d<t|«}|r||d<|j«Dcic]
\}}|dvsŒ ||Œc}}Scc}}w) zªGenerate info about a specific model.
model (str): Model name of path.
silent (bool): Don't print anything, just return.
RETURNS (dict): The model meta.
r%z meta.jsonzCan't find pipeline meta.jsonrr*Úsourcer))ÚaccuracyÚ performanceÚspeed)
r
r
Ú
is_packageÚget_package_pathrÚis_filer:ÚsrslyÚ read_jsonÚresolverRÚinfo_installed_model_urlr=) rrrEÚ
model_pathÚ meta_pathÚmetar)rGr5s r r;r;hô ˜6¨f¨*Ô