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

36 lines
5.5 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gç
ã óÌddlZddlZddlZddlZddlmZddlmZmZm Z m
Z
ddl Z ddl Z ddl
Z
ddlmZmZddlmZddlmZdd lmZmZmZmZmZej6d
«ej6d
d ¬ «ed
d¬«eddd d ¬«edddd¬«fde
j8dedeedefd««Zd#dedeededdfdZ dede eddfdZ!d e
eefd!edeefd"„Z"y)$éN)ÚPath)ÚIteratorÚOptionalÚSequenceÚUnion)ÚPrinterÚmsgé)ÚLanguage)Ú
load_modelé)ÚNAMEÚArgÚOptÚappÚ debug_cliÚprofileT)Úhidden.zTrained pipeline to load)Úhelpz&Location of input file. '-' for stdin.)rÚexistsÚ
allow_dashé'z --n-textsz-nz+Maximum number of texts to use if availableÚctxÚmodelÚinputsÚn_textscó˜|jjjtk(rt j
d«t
|||¬«y)a\
Profile which functions take the most time in a spaCy pipeline.
Input should be formatted as one JSON object per line with a key "text".
It can either be provided as a JSONL file, or be read from sys.sytdin.
If no input file is specified, the IMDB dataset is loaded via Thinc.
DOCS: https://spacy.io/api/cli#debug-profile
z¬The profile command is now available via the 'debug profile' subcommand. You can run python -m spacy debug --help for an overview of the other available debugging commands.)rrN)ÚparentÚcommandÚnamerr Úwarnr)rrrrs úRC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/profile.pyÚ profile_clir#s<ð$ ‡zz×Ñ×Ѥ$Ò ð
Bô
ô
 ˆE˜&¨'ÖÚreturncó.|/t|t«}ttj||««}|€] ddl}tjd«5j|d¬«\}}t|Ž\}}ddd«tjd|d«tjd |d
«5t|«}ddd«tjd |d «tjd
t!«t#«d«t%j&d«}tj(d«|j+«j-d«j/«y#t $rtjdd¬«YŒAwxYw#1swYŒxYw#1swYŒÖxYw)NrzwThis command, when run without an input file, requires the ml_datasets library to be installed: pip install ml_datasetsr
©Úexitsz'Loading IMDB dataset via ml_datasets...)Ú train_limitÚ dev_limitzLoaded IMDB dataset and using z exampleszLoading pipeline 'z'...zLoaded pipeline 'ú'zparse_texts(nlp, texts)z Profile.profz
Profile statsÚtime)Ú _read_inputsr ÚlistÚ itertoolsÚisliceÚ ml_datasetsÚ ImportErrorÚfailÚloadingÚimdbÚzipÚinfor ÚgoodÚcProfileÚrunctxÚglobalsÚlocalsÚpstatsÚStatsÚdividerÚ
strip_dirsÚ
sort_statsÚ print_stats) rrrÚtextsr1Ú
imdb_trainÚnlpÚss r"rr-sTØ
ÐܘV¤SÓÜ”Y×% e¨WÓØ
€~ð Û ô[‰[Ð
'×,¸ÈAÐN‰MˆJ˜Ü˜'‰HˆEDô Ð1°'°¸ Ð)¨%¨°Ð5Õ 6ܘӈ÷